{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/context-link-ai/json-schema/context-link-ai-get-question-response-schema.json",
  "title": "GetQuestionResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/context-link-ai-openapi-generated.yml#/components/schemas/GetQuestionResponse",
  "type": "object",
  "properties": {
    "format": {
      "type": "string",
      "description": "Top‑level format identifier."
    },
    "query": {
      "type": "string",
      "description": "The original query string."
    },
    "markdown": {
      "type": "string",
      "description": "Answer markdown (single paragraph when structured)."
    },
    "results": {
      "type": "array",
      "description": "Array with zero or one answer result."
    },
    "results[].content": {
      "type": "string",
      "description": "Answer content."
    },
    "results[].position": {
      "type": "integer",
      "description": "Position (always 0 for answer)."
    },
    "results[].rank": {
      "type": "integer",
      "description": "Rank (always 0 for answer)."
    },
    "results[].score": {
      "type": "number",
      "description": "Relevance score."
    },
    "results[].content_sha": {
      "type": "string",
      "description": "SHA of the answer content."
    },
    "results[].sources": {
      "type": "array",
      "description": "Cited sources for the answer."
    },
    "results[].sources[].citation": {
      "type": "string",
      "description": "Citation string."
    },
    "results[].sources[].uid": {
      "type": "string",
      "description": "Source UID."
    },
    "results[].sources[].title": {
      "type": "string",
      "description": "Source title."
    },
    "results[].sources[].url": {
      "type": "string",
      "description": "Source URL."
    },
    "results[].sources[].source_updated_at": {
      "type": "string",
      "description": "Timestamp of source update."
    },
    "results[].sources[].connection": {
      "type": "string",
      "description": "Connection identifier."
    }
  }
}