{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scale-ai/json-schema/scale-ai-paginated-list-agent-config-schema.json",
  "title": "PaginatedList_AgentConfig_",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scale-ai-agent-configs-api-openapi.yml#/components/schemas/PaginatedList_AgentConfig_",
  "properties": {
    "object": {
      "type": "string",
      "const": "list",
      "title": "Object",
      "default": "list"
    },
    "items": {
      "items": {
        "$ref": "#/$defs/AgentConfig"
      },
      "type": "array",
      "title": "Items"
    },
    "limit": {
      "type": "integer",
      "title": "Limit",
      "description": "The maximum number of items to return.",
      "default": 100
    },
    "total": {
      "type": "integer",
      "title": "Total",
      "description": "The total of items that match the query. This is greater than or equal to the number of items returned."
    },
    "has_more": {
      "type": "boolean",
      "title": "Has More",
      "description": "Whether there are more items left to be fetched."
    }
  },
  "type": "object",
  "required": [
    "items",
    "total",
    "has_more"
  ],
  "$defs": {
    "AgentConfig": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "object": {
          "type": "string",
          "const": "agent_config",
          "title": "Object",
          "default": "agent_config"
        },
        "name": {
          "type": "string",
          "title": "Name"
        },
        "description": {
          "title": "Description",
          "type": "string"
        },
        "system_prompt": {
          "type": "string",
          "title": "System Prompt"
        },
        "harness": {
          "type": "string",
          "title": "Harness"
        },
        "allowed_tools": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Allowed Tools"
        },
        "model": {
          "type": "string",
          "title": "Model"
        },
        "persistent_workspace": {
          "type": "boolean",
          "title": "Persistent Workspace",
          "default": false
        },
        "repos": {
          "title": "Repos",
          "items": {
            "$ref": "#/$defs/RepoSpec"
          },
          "type": "array"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "title": "Updated At"
        }
      },
      "type": "object",
      "required": [
        "id",
        "name",
        "system_prompt",
        "harness",
        "allowed_tools",
        "model",
        "created_at",
        "updated_at"
      ]
    },
    "RepoSpec": {
      "properties": {
        "url": {
          "type": "string",
          "maxLength": 2048,
          "minLength": 1,
          "title": "Url"
        },
        "path": {
          "title": "Path",
          "type": "string",
          "maxLength": 1024
        },
        "depth": {
          "title": "Depth",
          "type": "integer",
          "minimum": 1
        }
      },
      "type": "object",
      "required": [
        "url"
      ],
      "title": "RepoSpec",
      "description": "A single repo the agent should clone into its workspace.\n\nMirrors the per-entry shape the golden agent's ``_validate_repos`` accepts:\n``url`` is required, the rest are optional passthrough hints. Sent verbatim\nas ``task.params.repos`` so provisioning clones these instead of the\ndeployment-global default."
    }
  }
}