{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/asap-cool/json-schema/asap-cool-stream-message-request-schema.json",
  "title": "StreamMessageRequest",
  "description": "Request body for `POST /v1/copilot/messages`.\n\nThe client owns the conversation: it replays the full running history each\nturn (there is no server-side conversation store in V3).",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/asap-cool-copilot-api-openapi.yml#/components/schemas/StreamMessageRequest",
  "type": "object",
  "required": [
    "messages"
  ],
  "properties": {
    "messages": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CopilotMessage"
      },
      "description": "Conversation so far, oldest first."
    }
  },
  "$defs": {
    "CopilotMessage": {
      "type": "object",
      "description": "One conversation turn supplied by the client.",
      "required": [
        "role",
        "content"
      ],
      "properties": {
        "content": {
          "type": "string",
          "description": "Plain-text body of the turn."
        },
        "role": {
          "type": "string",
          "description": "Author of the turn (`user` or `assistant`)."
        }
      }
    }
  }
}