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. The private content module holds content-generation pairs; other holds 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§

TransformContext
Per-call transform settings.
TransformDiagnostic
A structured, non-fatal semantic loss reported by a transform.
TransformOutput
A transformed value together with all non-fatal semantic diagnostics produced while creating it.

Enums§

TransformDiagnosticKind
Classification of a non-fatal semantic transform diagnostic.
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.