{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/thoughtbox-ai/json-schema/thoughtbox-ai-panel-completion-request-schema.json",
  "title": "PanelCompletionRequest",
  "description": "Same client-resends-full-history shape as ChatRequest (thoughtbox#186's\n\"chat_completions is otherwise stateless per-call\" applies here too —\npersistence is the frontend's job via POST .../messages, same as today's\nsingle-model chat, just called once per advisor after their stream ends\ninstead of once). advisor_ids selects who's in the panel for this turn;\nprovider/model come from each Advisor row, not this request.",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thoughtbox-ai-openapi.json#/components/schemas/PanelCompletionRequest",
  "properties": {
    "messages": {
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": "array",
      "title": "Messages"
    },
    "advisor_ids": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Advisor Ids"
    },
    "tools_enabled": {
      "type": "boolean",
      "title": "Tools Enabled",
      "default": true
    },
    "time_zone": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Time Zone"
    },
    "brief_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Brief Id"
    },
    "conversation_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Conversation Id"
    },
    "hands_free": {
      "type": "boolean",
      "title": "Hands Free",
      "default": false
    },
    "open_space": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Open Space"
    }
  },
  "type": "object",
  "required": [
    "messages",
    "advisor_ids"
  ]
}