Expand description
Realtime session — driver that normalises raw OpenAI events into
vendor-neutral RealtimeEvent values and dispatches tool batches.
Compared to the Python and TypeScript ports, the Rust session is consumed via two channels:
events_rx: vendor-neutralRealtimeEventstreamaudio_rx: decoded PCM frames (also surfaced asAssistantAudioDeltaevents for completeness)
Callers spawn the session via RealtimeSession::run, which takes
the gateway session and returns the channels; the run task pumps the
gateway until close. This mirrors the broker → session orchestration
in the other ports while staying idiomatic Rust async.
Structs§
- Realtime
Session - Outbound handle returned by
RealtimeSession::run.
Functions§
- build_
session_ update - Build the vendor-specific
session.updatepayload from a vendor-neutral config. Matches the OpenAI Realtime GA shape.