Skip to main content

Module transform

Module transform 

Source
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 TransformPair to 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§

TransformContext
Per-call transform settings.

Enums§

TransformError
Errors returned by provider-to-provider transforms.
TransformPair
Stable identifier for a supported transform implementation.

Functions§

resolve
Resolve operation keys to a concrete pair module.