{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/artificialwit-com/json-schema/artificialwit-com-chat-request-schema.json",
  "title": "ChatRequest",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/artificialwit-com-openapi.json#/components/schemas/ChatRequest",
  "properties": {
    "message": {
      "type": "string",
      "minLength": 1,
      "title": "Message",
      "description": "The new user message."
    },
    "agent_id": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Agent Id",
      "description": "Optional other wise will use the default agent."
    },
    "session_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Session Id",
      "description": "Override other wise a new session_id will be generated for each request."
    },
    "stream": {
      "type": "boolean",
      "title": "Stream",
      "description": "If true, response is streamed as SSE.",
      "default": false
    }
  },
  "type": "object",
  "required": [
    "message"
  ]
}