{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rrmacademy-org/json-schema/rrmacademy-org-ask-response-schema.json",
  "title": "AskResponse",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rrmacademy-org-openapi.json#/components/schemas/AskResponse",
  "type": "object",
  "required": [
    "answer",
    "citations"
  ],
  "properties": {
    "answer": {
      "type": "string",
      "description": "AI-generated answer scoped to RRM Library content"
    },
    "citations": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "url"
        ],
        "properties": {
          "url": {
            "type": "string",
            "format": "uri"
          },
          "title": {
            "type": "string"
          }
        }
      }
    },
    "fallback": {
      "type": "boolean",
      "description": "true when no relevant library content was found and a fallback message is returned"
    }
  }
}