{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/triall-ai/json-schema/triall-ai-run-request-schema.json",
  "title": "RunRequest",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/triall-ai-openapi.json#/components/schemas/RunRequest",
  "properties": {
    "question": {
      "type": "string",
      "maxLength": 50000,
      "minLength": 1,
      "title": "Question"
    },
    "context": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 100000
        },
        {
          "type": "null"
        }
      ],
      "title": "Context"
    },
    "preset": {
      "type": "string",
      "pattern": "^(full_power|test_run|custom)$",
      "title": "Preset",
      "default": "full_power"
    },
    "language": {
      "type": "string",
      "maxLength": 5,
      "title": "Language",
      "default": "en"
    },
    "depth": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^(verdict|trial)$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Depth"
    },
    "council_models": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array",
          "maxItems": 3,
          "minItems": 3
        },
        {
          "type": "null"
        }
      ],
      "title": "Council Models"
    },
    "generator_model": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Generator Model"
    },
    "critic_model": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Critic Model"
    },
    "refiner_model": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Refiner Model"
    },
    "max_iterations": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 10.0,
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Max Iterations"
    }
  },
  "type": "object",
  "required": [
    "question"
  ]
}