{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cadencz-com/json-schema/cadencz-com-brain-chat-request-schema.json",
  "title": "BrainChatRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cadencz-com-brain-conversations-api-openapi.yml#/components/schemas/BrainChatRequest",
  "properties": {
    "message": {
      "type": "string",
      "maxLength": 8000,
      "minLength": 1,
      "title": "Message"
    },
    "mode": {
      "type": "string",
      "enum": [
        "auto",
        "chat",
        "create",
        "refine"
      ],
      "title": "Mode",
      "default": "auto"
    },
    "platform": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 40,
          "minLength": 1
        },
        {
          "type": "null"
        }
      ],
      "title": "Platform"
    }
  },
  "type": "object",
  "required": [
    "message"
  ]
}