Expand description
Provider-to-provider protocol transforms.
Protocol modules model provider wire shapes only. This module owns conversion between those wire shapes, organized by operation capability.
Modules§
- common
- Mechanical helpers shared by pairwise transforms.
- compact
- Compact-content pairwise transforms.
- count_
tokens - Count-token pairwise transforms.
- dispatch
- Bytes-level dispatch from a resolved
TransformPairto its typed pair functions. [content] holds the 12 content-generation pairs (M2); [other] holds count_tokens/models/embeddings/images/compact (M2.5). Streaming is wired for content pairs only. - embeddings
- Embedding pairwise transforms.
- generate_
content - Content-generation pairwise transforms.
- images
- Image pairwise transforms.
- models
- Model-list and model-retrieve pairwise transforms.
- routing
- Compiled routing rules (§8-B2
routing_rules) and the transform-dispatch decision (§6.1): passthrough / transform_to / local / unsupported. - stream_
adapter - Runtime SSE adaptation for cross-protocol content-generation streams.
Structs§
- Transform
Context - Per-call transform settings.
Enums§
- Transform
Error - Errors returned by provider-to-provider transforms.
- Transform
Pair - Stable identifier for a supported transform implementation.
Functions§
- resolve
- Resolve operation keys to a concrete pair module.