{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/thoughtbox-ai/json-schema/thoughtbox-ai-chat-request-schema.json",
  "title": "ChatRequest",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thoughtbox-ai-openapi.json#/components/schemas/ChatRequest",
  "properties": {
    "provider": {
      "type": "string",
      "title": "Provider"
    },
    "model": {
      "type": "string",
      "title": "Model"
    },
    "messages": {
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": "array",
      "title": "Messages"
    },
    "stream": {
      "type": "boolean",
      "title": "Stream",
      "default": true
    },
    "tools_enabled": {
      "type": "boolean",
      "title": "Tools Enabled",
      "default": true
    },
    "file_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "File Id"
    },
    "file_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "File Name"
    },
    "file_provider": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "File Provider"
    },
    "return_extracted_text": {
      "type": "boolean",
      "title": "Return Extracted Text",
      "default": false
    },
    "task": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Task"
    },
    "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"
    },
    "user_message_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "User Message Id"
    },
    "hands_free": {
      "type": "boolean",
      "title": "Hands Free",
      "default": false
    },
    "open_space": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Open Space"
    }
  },
  "type": "object",
  "required": [
    "provider",
    "model",
    "messages"
  ]
}