{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sealgate-ai/json-schema/sealgate-ai-demo-chat-request-schema.json",
  "title": "DemoChatRequest",
  "description": "Body of POST /demo/chat.\n\nThe frontend uses the Vercel AI SDK's ``useChat``/``DefaultChatTransport``,\nwhich posts ``{id, messages, trigger, messageId}`` (UIMessage array). The\nlegacy ``{message}`` shape is still accepted for older clients/tests. The\ndemo agent is fully scripted, so the content is only logged - never fed to\na model.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sealgate-ai-demo-api-openapi.yml#/components/schemas/DemoChatRequest",
  "properties": {
    "message": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 500
        },
        {
          "type": "null"
        }
      ],
      "title": "Message"
    },
    "messages": {
      "anyOf": [
        {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Messages"
    }
  },
  "additionalProperties": true,
  "type": "object"
}