{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/communicate-so/json-schema/communicate-so-chat-request-schema.json",
  "title": "ChatRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/communicate-so-chat-api-openapi.yml#/components/schemas/ChatRequest",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "message"
  ],
  "properties": {
    "message": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4000,
      "description": "End-user prompt sent to the agent."
    },
    "requestId": {
      "type": "string",
      "format": "uuid",
      "description": "Optional idempotency key for safe retries of the same chat input."
    },
    "conversationId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Continue an existing API-channel conversation when present."
    }
  }
}