{
  "note": "What the Tokedex SDK supports in each language. This file is served at /language-support.json.",
  "legend": {
    "stable": "Implemented, with the same behaviour in every language marked stable.",
    "partial": "Works, with gaps compared with TypeScript.",
    "stub": "Absent or a placeholder; you supply the implementation.",
    "na": "Does not apply to this language."
  },
  "surfaces": [
    {
      "id": "sdk-router",
      "label": "Router object: Responses, Chat Completions, Messages, GenerateContent, models and Batch",
      "ts": "stable",
      "rust": "stable",
      "python": "stable",
      "note": "Calls any built-in model by model ID with each API's own request and response fields, directly or through a gateway. Python has a synchronous Router and an AsyncRouter. Typed output comes from responses.parse with a schema in each language."
    },
    {
      "id": "sdk-core",
      "label": "Your own routes: createRouter with chat, stream and structured",
      "ts": "stable",
      "rust": "stable",
      "python": "stable",
      "note": "Routes you list in order of preference, with retries, failover, hooks and sinks."
    },
    {
      "id": "run",
      "label": "Tool runs",
      "ts": "stable",
      "rust": "stable",
      "python": "stable",
      "note": "runTools with a Router, and the core run function, return every step, the full conversation, combined usage and the reason the run ended. Python and Rust name it run_tools."
    },
    {
      "id": "otlp-http-drain",
      "label": "OpenTelemetry HTTP export helper",
      "ts": "stable",
      "rust": "stable",
      "python": "stable",
      "note": "createOtelHttpDrain from @tokedex/gateway in TypeScript, create_otel_http_drain from tokedex.telemetry in Python and from tokedex::telemetry in Rust."
    },
    {
      "id": "nextjs-route",
      "label": "Gateway route embedded in a Next.js app",
      "ts": "stable",
      "rust": "na",
      "python": "na",
      "note": "TypeScript only."
    },
    {
      "id": "examples",
      "label": "Runnable numbered examples",
      "ts": "stable",
      "rust": "stable",
      "python": "stable",
      "note": "Each language has examples for the Router, your own routes and streamed tool runs. Python and Rust add a Batch example. TypeScript adds a Next.js gateway route and an observability agent."
    }
  ]
}
