{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/asap-cool/json-schema/asap-cool-create-agent-request-schema.json",
  "title": "CreateAgentRequest",
  "description": "Body for `POST /v1/agents`.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/asap-cool-agents-api-openapi.yml#/components/schemas/CreateAgentRequest",
  "type": "object",
  "required": [
    "kind",
    "name"
  ],
  "properties": {
    "kind": {
      "type": "string",
      "description": "Surface kind (`website_visitor` in V1)."
    },
    "model": {
      "type": [
        "string",
        "null"
      ],
      "description": "LLM model id. Defaults to the small Mistral model (`MISTRAL_MODEL_SMALL`, `mistral-small-latest`)."
    },
    "name": {
      "type": "string",
      "description": "Human-readable name (1–120 chars)."
    },
    "persona": {
      "type": "string",
      "description": "Persona text (may be empty)."
    },
    "scopes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Initial scopes. Defaults to `[]`."
    },
    "settings": {
      "description": "Kind-specific settings. Defaults to `{}`."
    },
    "tools": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Initial tool allowlist. Defaults to `[]`."
    }
  }
}