{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/grafomem-com/json-schema/grafomem-com-create-agent-request-schema.json",
  "title": "CreateAgentRequest",
  "description": "Request body for POST /v1/orchestrator/agents.",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/grafomem-com-openapi.json#/components/schemas/CreateAgentRequest",
  "properties": {
    "name": {
      "type": "string",
      "title": "Name"
    },
    "role": {
      "type": "string",
      "title": "Role",
      "default": "custom"
    },
    "description": {
      "type": "string",
      "title": "Description",
      "default": ""
    },
    "model_id": {
      "type": "string",
      "title": "Model Id"
    },
    "fallback_models": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Fallback Models"
    },
    "system_prompt": {
      "type": "string",
      "title": "System Prompt"
    },
    "memory_stores": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Memory Stores"
    },
    "tools": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Tools"
    },
    "max_steps": {
      "type": "integer",
      "title": "Max Steps",
      "default": 20
    },
    "max_tokens_per_step": {
      "type": "integer",
      "title": "Max Tokens Per Step",
      "default": 4096
    },
    "temperature": {
      "type": "number",
      "title": "Temperature",
      "default": 0.7
    },
    "enabled": {
      "type": "boolean",
      "title": "Enabled",
      "default": true
    },
    "agent_key": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Agent Key"
    },
    "agent_handle": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Agent Handle"
    }
  },
  "type": "object",
  "required": [
    "name",
    "model_id",
    "system_prompt"
  ]
}