pub enum RealtimeEvent {
SessionReady,
AudioDelta {
delta: String,
},
TranscriptDelta {
delta: String,
source: String,
},
TranscriptDone {
transcript: String,
source: String,
},
SpeechStarted,
SpeechStopped,
FunctionCall {
name: String,
call_id: String,
arguments: String,
},
ResponseDone,
Error {
message: String,
},
Unknown(Value),
}Expand description
Parsed incoming event from the realtime API.
Variants§
SessionReady
Session configuration acknowledged.
AudioDelta
Base64-encoded PCM audio chunk from the assistant.
TranscriptDelta
Partial transcript text.
TranscriptDone
Final transcript for a completed utterance.
SpeechStarted
Voice activity detected — user started speaking.
SpeechStopped
Voice activity ended — user stopped speaking.
FunctionCall
The model is requesting a function/tool call.
ResponseDone
The model finished its response turn.
Error
An error from the realtime API.
Unknown(Value)
An event type we don’t explicitly handle.
Trait Implementations§
Source§impl Clone for RealtimeEvent
impl Clone for RealtimeEvent
Source§fn clone(&self) -> RealtimeEvent
fn clone(&self) -> RealtimeEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RealtimeEvent
impl RefUnwindSafe for RealtimeEvent
impl Send for RealtimeEvent
impl Sync for RealtimeEvent
impl Unpin for RealtimeEvent
impl UnsafeUnpin for RealtimeEvent
impl UnwindSafe for RealtimeEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more