{
  "version": 1,
  "product": "AI Gateway",
  "site": "https://docs.ai-gateway.x12i.com",
  "knowledgePackage": "@x12i/ai-gateway-docs",
  "roles": [
    "developers",
    "builders"
  ],
  "books": [
    {
      "id": "01-gateway-core",
      "audiences": [
        "developers"
      ],
      "md": {
        "developers": "downloads/books/01-gateway-core/developers.md"
      },
      "pdf": {
        "developers": null
      },
      "chapters": {
        "developers": "downloads/books/01-gateway-core/developers.chapters.json"
      }
    },
    {
      "id": "02-routing-and-cost",
      "audiences": [
        "developers",
        "builders"
      ],
      "md": {
        "developers": "downloads/books/02-routing-and-cost/developers.md",
        "builders": "downloads/books/02-routing-and-cost/builders.md"
      },
      "pdf": {
        "developers": null,
        "builders": null
      },
      "chapters": {
        "developers": "downloads/books/02-routing-and-cost/developers.chapters.json",
        "builders": "downloads/books/02-routing-and-cost/builders.chapters.json"
      }
    },
    {
      "id": "03-observability",
      "audiences": [
        "builders",
        "developers"
      ],
      "md": {
        "builders": "downloads/books/03-observability/builders.md",
        "developers": "downloads/books/03-observability/developers.md"
      },
      "pdf": {
        "builders": null,
        "developers": null
      },
      "chapters": {
        "builders": "downloads/books/03-observability/builders.chapters.json",
        "developers": "downloads/books/03-observability/developers.chapters.json"
      }
    }
  ],
  "useCases": [
    {
      "id": "invoke-with-identity",
      "title": "Invoke with mandatory identity",
      "md": "downloads/use-cases/invoke-with-identity.md",
      "path": [
        {
          "bookId": "01-gateway-core",
          "audience": "developers",
          "chapters": [
            "install",
            "mandatory-identity",
            "quick-start-invoke"
          ],
          "why": "Establish the happy-path invoke contract."
        }
      ]
    },
    {
      "id": "invoke-chat",
      "title": "Use invokeChat for conversational calls",
      "md": "downloads/use-cases/invoke-chat.md",
      "path": [
        {
          "bookId": "01-gateway-core",
          "audience": "developers",
          "chapters": [
            "mandatory-identity",
            "invoke-chat"
          ],
          "why": "Chat shares message building but skips action classification."
        }
      ]
    },
    {
      "id": "enable-activix-and-cost",
      "title": "Enable Activix and trust gateway cost",
      "md": "downloads/use-cases/enable-activix-and-cost.md",
      "path": [
        {
          "bookId": "02-routing-and-cost",
          "audience": "developers",
          "chapters": [
            "cost-resolution",
            "activix-billing"
          ],
          "why": "Cost is gateway-owned; Activix stores the computed slice."
        },
        {
          "bookId": "03-observability",
          "audience": "builders",
          "chapters": [
            "activix-setup"
          ],
          "why": "Mongo env and tracker wiring."
        }
      ]
    },
    {
      "id": "trace-diagnostics",
      "title": "Capture trace diagnostics",
      "md": "downloads/use-cases/trace-diagnostics.md",
      "path": [
        {
          "bookId": "03-observability",
          "audience": "developers",
          "chapters": [
            "trace-mode"
          ],
          "why": "Rich attempt history for debugging routing and cost."
        }
      ]
    }
  ],
  "indexes": {
    "indexMd": "INDEX.md",
    "searchJson": "SEARCH.json"
  },
  "concepts": [
    {
      "id": "graph-execution",
      "title": "Graph execution support",
      "md": "concepts/graph-execution.md"
    },
    {
      "id": "identity-contract",
      "title": "Identity contract",
      "md": "concepts/identity-contract.md"
    },
    {
      "id": "invoke-metadata",
      "title": "Invoke execution metadata",
      "md": "concepts/invoke-metadata.md"
    },
    {
      "id": "session-id",
      "title": "Session ID",
      "md": "concepts/session-id.md"
    }
  ],
  "guides": [
    {
      "id": "configure-openrouter",
      "title": "Configure OpenRouter",
      "md": "guides/configure-openrouter.md"
    },
    {
      "id": "dual-package-publish",
      "title": "Dual-package publish layout",
      "md": "guides/dual-package-publish.md"
    },
    {
      "id": "init-logxer",
      "title": "Initialize Logxer",
      "md": "guides/init-logxer.md"
    }
  ],
  "scenarios": [
    {
      "id": "openrouter-vs-direct",
      "title": "OpenRouter vs direct provider",
      "md": "scenarios/openrouter-vs-direct.md"
    }
  ],
  "decisions": [
    {
      "id": "choose-flex-md-level",
      "title": "Choose flex-md output level",
      "md": "decisions/choose-flex-md-level.md"
    }
  ],
  "glossary": [],
  "visuals": [],
  "diagrams": [],
  "relationships": [],
  "tutorials": [],
  "examples": [],
  "sampleData": [],
  "uiClients": [],
  "apis": [],
  "packs": [
    {
      "id": "concept/graph-execution",
      "type": "concept",
      "path": "packs/concept/graph-execution"
    },
    {
      "id": "concept/identity-contract",
      "type": "concept",
      "path": "packs/concept/identity-contract"
    },
    {
      "id": "concept/invoke-metadata",
      "type": "concept",
      "path": "packs/concept/invoke-metadata"
    },
    {
      "id": "concept/session-id",
      "type": "concept",
      "path": "packs/concept/session-id"
    },
    {
      "id": "guide/configure-openrouter",
      "type": "guide",
      "path": "packs/guide/configure-openrouter"
    },
    {
      "id": "guide/dual-package-publish",
      "type": "guide",
      "path": "packs/guide/dual-package-publish"
    },
    {
      "id": "guide/init-logxer",
      "type": "guide",
      "path": "packs/guide/init-logxer"
    },
    {
      "id": "scenario/openrouter-vs-direct",
      "type": "scenario",
      "path": "packs/scenario/openrouter-vs-direct"
    }
  ]
}