Expand description
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.
Structs§
- Stream
Converter - Stateful
0..Nstream-event converter for one resolved pair.
Enums§
- Stream
Event Out - One converted stream event: pre-encoded inbound frame payload, or the typed Responses event when the inbound side runs the aggregation state machine.
Functions§
- is_
wired - Whether the bytes dispatch has arms for this pair.
- request_
bytes - Convert a request body (inbound wire JSON → upstream wire JSON).
- request_
bytes_ detailed - Convert a request and return non-fatal semantic-loss diagnostics.
- response_
bytes - Convert a response body (upstream wire JSON → inbound wire JSON). The pair
here is the REVERSE pair (
resolve(upstream_key, inbound_key)). - response_
bytes_ detailed - Convert a response and return non-fatal semantic-loss diagnostics.
- stream_
event - Convert one decoded stream event (upstream wire JSON text → inbound event).
Same reverse-pair convention as
response_bytes. Only content-generation pairs stream; the other groups are buffered. This convenience call retains no cross-frame state; useStreamConverterfor an actual response stream.