{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/algenta-ai/json-schema/algenta-ai-agent-run-create-request-schema.json",
  "title": "AgentRunCreateRequest",
  "description": "Create a persisted agent run lifecycle resource.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/algenta-ai-agent-runtime-api-openapi.yml#/components/schemas/AgentRunCreateRequest",
  "properties": {
    "task": {
      "type": "string",
      "minLength": 5,
      "title": "Task",
      "description": "What should the agent do?"
    },
    "context": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Context",
      "description": "Additional context or data"
    },
    "tools": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tools",
      "description": "Tools to make available: search, simulate, optimize, calculate, summarize"
    },
    "max_steps": {
      "type": "integer",
      "maximum": 50.0,
      "minimum": 1.0,
      "title": "Max Steps",
      "description": "Maximum execution steps",
      "default": 10
    },
    "output_format": {
      "type": "string",
      "title": "Output Format",
      "description": "Output format: text, json, markdown",
      "default": "text"
    },
    "approval_mode": {
      "type": "string",
      "enum": [
        "auto",
        "manual"
      ],
      "title": "Approval Mode",
      "description": "Execution mode: auto executes immediately, manual waits for approval.",
      "default": "auto"
    },
    "start_paused": {
      "type": "boolean",
      "title": "Start Paused",
      "description": "If true, persist the run in paused state until /resume is called.",
      "default": false
    }
  },
  "type": "object",
  "required": [
    "task"
  ]
}