{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scale-ai/json-schema/scale-ai-agent-config-schema.json",
  "title": "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/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"
  ],
  "$defs": {
    "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."
    }
  }
}