{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cadencz-com/json-schema/cadencz-com-agent-run-request-schema.json",
  "title": "AgentRunRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cadencz-com-agents-api-openapi.yml#/components/schemas/AgentRunRequest",
  "properties": {
    "input": {
      "type": "string",
      "maxLength": 8000,
      "minLength": 1,
      "title": "Input",
      "description": "What the user is asking the agent graph to do."
    },
    "tags": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "maxItems": 12,
      "title": "Tags",
      "description": "Strict allow-list tags that steer the graph (e.g. #reddit, #hook, #shorten)."
    },
    "platform": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 40
        },
        {
          "type": "null"
        }
      ],
      "title": "Platform",
      "description": "Optional target platform for this run."
    },
    "brain_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Brain Id",
      "description": "Optional Brain id/slug to ground the run in saved product knowledge."
    },
    "route": {
      "type": "string",
      "maxLength": 40,
      "title": "Route",
      "description": "Graph route: 'answer' (strict one-line) or 'generate_post'.",
      "default": "answer"
    },
    "read_source": {
      "type": "string",
      "maxLength": 20,
      "title": "Read Source",
      "description": "Reader source: 'paste' | 'rss' | 'x' (x is flagged off in v1).",
      "default": "paste"
    },
    "read_input": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 20000
        },
        {
          "type": "null"
        }
      ],
      "title": "Read Input",
      "description": "Optional material for the Reader agent — pasted text or an RSS URL."
    }
  },
  "type": "object",
  "required": [
    "input"
  ]
}