{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/retailintel-in/json-schema/retailintel-in-post-api-v1-ask-request-schema.json",
  "title": "PostApiV1AskRequest",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/retailintel-in-openapi-generated.yml#/components/schemas/PostApiV1AskRequest",
  "type": "object",
  "properties": {
    "messages": {
      "type": "object",
      "description": "Array of message objects; the last message is the question"
    },
    "messages[].role": {
      "type": "string",
      "description": "user"
    },
    "messages[].content": {
      "type": "string",
      "description": "1–500 characters"
    },
    "stream": {
      "type": "boolean",
      "description": "Set true for server‑sent events"
    }
  },
  "required": [
    "messages",
    "messages[].role",
    "messages[].content"
  ]
}