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. The privatecontentmodule holds content-generation pairs;otherholds count_tokens/models/embeddings/images/compact. 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.
- stream_
adapter - Runtime SSE adaptation for cross-protocol content-generation streams.
Structs§
- Transform
Context - Per-call transform settings.
- Transform
Diagnostic - A structured, non-fatal semantic loss reported by a transform.
- Transform
Output - A transformed value together with all non-fatal semantic diagnostics produced while creating it.
Enums§
- Transform
Diagnostic Kind - Classification of a non-fatal semantic transform diagnostic.
- 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.