{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/horusbi-com-br/json-schema/horusbi-com-br-post-tenant-ai-chat-request-schema.json",
  "title": "PostTenantAiChatRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/horusbi-com-br-openapi-generated.yml#/components/schemas/PostTenantAiChatRequest",
  "type": "object",
  "properties": {
    "userId": {
      "type": "integer",
      "description": "ID do usuário ativo no tenant."
    },
    "message": {
      "type": "string",
      "description": "Pergunta a ser enviada ao assistente."
    },
    "threadId": {
      "type": "string",
      "description": "ID da conversa existente; omitido cria nova conversa."
    },
    "modelKey": {
      "type": "string",
      "description": "`fast` ou `reasoning` para escolher o modelo."
    }
  },
  "required": [
    "userId",
    "message"
  ]
}