Expand description
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.
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).
- response_
bytes - Convert a response body (upstream wire JSON → inbound wire JSON). The pair
here is the REVERSE pair (
resolve(upstream_key, inbound_key)). - 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.