{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/adro1b33/main/json-schema/adro1b33-chat-request-schema.json",
  "title": "ChatRequest",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adro1b33-geometry-cleaning-api-openapi.yml#/components/schemas/ChatRequest",
  "type": "object",
  "properties": {
    "message": {
      "type": "string",
      "maxLength": 2000
    },
    "locale": {
      "enum": [
        "ko",
        "en"
      ],
      "type": "string",
      "description": "* `ko` - ko\n* `en` - en",
      "x-spec-enum-id": "659d4ef1ad5b5558",
      "default": "en"
    },
    "revision": {
      "type": "string",
      "maxLength": 64
    },
    "history": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ConversationMessage"
      }
    }
  },
  "required": [
    "message",
    "revision"
  ],
  "$defs": {
    "ConversationMessage": {
      "type": "object",
      "properties": {
        "role": {
          "enum": [
            "user",
            "assistant"
          ],
          "type": "string",
          "description": "* `user` - user\n* `assistant` - assistant",
          "x-spec-enum-id": "da623bca3e193af6"
        },
        "content": {
          "type": "string",
          "maxLength": 4000
        }
      },
      "required": [
        "content",
        "role"
      ]
    }
  }
}