{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/physea-ai/json-schema/physea-ai-solve-request-schema.json",
  "title": "SolveRequest",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/physea-ai-openapi.json#/components/schemas/SolveRequest",
  "properties": {
    "question": {
      "type": "string",
      "title": "Question"
    },
    "task_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Task Id"
    },
    "context": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 4000
        },
        {
          "type": "null"
        }
      ],
      "title": "Context"
    },
    "resources": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Resources"
    },
    "max_depth": {
      "type": "integer",
      "title": "Max Depth",
      "default": 3
    },
    "mode": {
      "type": "string",
      "enum": [
        "auto",
        "solve",
        "decide",
        "research",
        "plan"
      ],
      "title": "Mode",
      "default": "auto"
    },
    "follow_up_of": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Follow Up Of"
    },
    "resolve": {
      "type": "boolean",
      "title": "Resolve",
      "default": false
    },
    "ground": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "string"
        }
      ],
      "title": "Ground",
      "default": false
    },
    "allow_model": {
      "type": "boolean",
      "title": "Allow Model",
      "default": false
    }
  },
  "type": "object",
  "required": [
    "question"
  ]
}