{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/context-link-ai/json-schema/context-link-ai-get-context-response-schema.json",
  "title": "GetContextResponse",
  "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/GetContextResponse",
  "type": "object",
  "properties": {
    "format": {
      "type": "string",
      "description": "Top‑level format identifier."
    },
    "query": {
      "type": "string",
      "description": "The original query string."
    },
    "markdown": {
      "type": "string",
      "description": "Full markdown response."
    },
    "results": {
      "type": "array",
      "description": "Array of result objects."
    },
    "results[].content": {
      "type": "string",
      "description": "Chunk content."
    },
    "results[].position": {
      "type": "integer",
      "description": "Position of the chunk."
    },
    "results[].rank": {
      "type": "integer",
      "description": "Rank of the chunk."
    },
    "results[].score": {
      "type": "number",
      "description": "Relevance score."
    },
    "results[].content_sha": {
      "type": "string",
      "description": "SHA of the content."
    },
    "results[].sources": {
      "type": "array",
      "description": "Sources for the chunk."
    },
    "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."
    }
  }
}