{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cekura-ai/json-schema/cekura-ai-api-chat-turn-poll-response-schema.json",
  "title": "ApiChatTurnPollResponse",
  "description": "Response for GET /runs/{run_id}/chat/{turn_id}/ (poll for the reply).",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cekura-ai-runs-api-openapi.yml#/components/schemas/ApiChatTurnPollResponse",
  "type": "object",
  "properties": {
    "run_id": {
      "type": "integer"
    },
    "result_id": {
      "type": "integer"
    },
    "turn_id": {
      "type": "integer"
    },
    "status": {
      "type": "string",
      "description": "'generating' until ready, then 'ready' (or 'error')."
    },
    "message": {
      "type": [
        "string",
        "null"
      ],
      "description": "The simulated user's reply; null until status is 'ready'."
    },
    "ended": {
      "type": "boolean",
      "description": "True when the conversation has ended."
    },
    "ended_reason": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "ended",
    "ended_reason",
    "message",
    "result_id",
    "run_id",
    "status",
    "turn_id"
  ]
}