Skip to main content

Module streaming

Module streaming 

Source
Expand description

Streaming conversion: Chat SSE chunks → Responses API event sequence.

Submodules:

  • events — ResponseStreamEvent enum
  • state — StreamState, ToolCallState
  • converter — chat_chunk_to_response_events(), finalize_output()
  • sse_ser — event_to_sse(), sse_event(), response_stub_json()

Re-exports§

pub use events::*;
pub use state::*;
pub use converter::*;
pub use sse_ser::*;

Modules§

converter
Core conversion logic: Chat SSE chunks to Responses API stream events.
events
Response stream event types for the Responses API streaming protocol.
sse_ser
SSE serialization: ResponseStreamEvent to SSE string format.
state
Streaming state types: StreamState and ToolCallState.