AI Gateway · Component · gateway-python-sdk
Synchronous typed gateway Python SDK
What it does
Provide stdlib-only synchronous HTTP resources for model, chat, embedding/rerank, media and batch APIs, routing hints, multipart and typed errors. Responses are buffered; no streaming iterator or automatic retry is claimed.
Core pattern
Unified request interface + typed responses and errors
- Input
- Gateway endpoint, payload, files and routing hints
- Output
- Parsed response or raw bytes and structured gateway error
Key parameters
| Name | Type | Default | Values |
|---|---|---|---|
| operation | string | request | request · request_raw · models · chat · responses · messages · media · batches |
| base_url | string | — | — |
| endpoint | — | — | — |
| request_body | — | — | — |
| route_id | — | — | — |
Maturity and limits
Source inspected statically; tests and external integrations were not executed.
Not an async or streaming client; caller must add explicit retries/timeouts and avoid retrying non-idempotent calls.
2 sentences citing source paths or vendor names omitted for publication.
Used in pipelines
Industry tags
- Business & general servicesTransferable use
For service integration for an internal knowledge assistant, use unified request interface followed by typed responses and errors.
Skills pack
Contract scaffold and deterministic mock
Download · 11KBSHA-256 aeb61d0b90968604f92ca407d944194c7ed233dbdfbfa1a647965c792292645b
Related components
-
Gateway plugins and configuration migration
Policy extension loading + versioned config validation and rollback
Working 2 pipelines -
Gateway fleet enrollment and health
Service node registration + heartbeats and revocation
Working 1 pipeline -
Provider capability diagnostics
Catalog and configuration cross-checks + callability explanations
Working 2 pipelines -
AI endpoint management and testing
Service configuration and connectivity tests + response inspection
Prototype 2 pipelines