{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/adro1b33/main/json-schema/adro1b33-ai-chat-response-schema.json",
  "title": "AiChatResponse",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adro1b33-ai-api-openapi.yml#/components/schemas/AiChatResponse",
  "type": "object",
  "properties": {
    "intent": {
      "type": "string"
    },
    "engine": {
      "type": "string"
    },
    "answer": {
      "type": "string"
    },
    "confidence": {
      "enum": [
        "confirmed",
        "likely",
        "uncertain"
      ],
      "type": "string",
      "description": "* `confirmed` - confirmed\n* `likely` - likely\n* `uncertain` - uncertain",
      "x-spec-enum-id": "ba956d2d6133366d"
    },
    "findings": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AiFinding"
      }
    },
    "missingInformation": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "parameters": {
      "type": "array",
      "items": {}
    },
    "recommendation": {},
    "diagnosis": {},
    "needsHumanSupport": {
      "type": "boolean"
    },
    "supportSummary": {
      "type": "string"
    }
  },
  "required": [
    "answer",
    "confidence",
    "diagnosis",
    "engine",
    "findings",
    "intent",
    "missingInformation",
    "needsHumanSupport",
    "parameters",
    "recommendation",
    "sources",
    "supportSummary"
  ],
  "$defs": {
    "AiFinding": {
      "type": "object",
      "properties": {
        "severity": {
          "enum": [
            "blocker",
            "warning",
            "info"
          ],
          "type": "string",
          "description": "* `blocker` - blocker\n* `warning` - warning\n* `info` - info",
          "x-spec-enum-id": "89eaa3468c08a8fe"
        },
        "title": {
          "type": "string"
        },
        "detail": {
          "type": "string"
        },
        "action": {
          "type": "string"
        }
      },
      "required": [
        "action",
        "detail",
        "severity",
        "title"
      ]
    }
  }
}