{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/compteam-io/json-schema/compteam-io-app-api-v1-endpoints-agent-chat-request-schema.json",
  "title": "ChatRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/compteam-io-ai-companion-api-openapi.yml#/components/schemas/app__api__v1__endpoints__agent__ChatRequest",
  "properties": {
    "messages": {
      "items": {
        "$ref": "#/$defs/app__api__v1__endpoints__agent__ChatMessage"
      },
      "type": "array",
      "title": "Messages"
    }
  },
  "type": "object",
  "required": [
    "messages"
  ],
  "$defs": {
    "app__api__v1__endpoints__agent__ChatMessage": {
      "properties": {
        "role": {
          "type": "string",
          "enum": [
            "user",
            "assistant"
          ],
          "title": "Role"
        },
        "content": {
          "type": "string",
          "title": "Content"
        }
      },
      "type": "object",
      "required": [
        "role",
        "content"
      ],
      "title": "ChatMessage"
    }
  }
}