pub enum ClientEvent {
SessionStart {
event_id: Option<String>,
session: LiveSessionConfig,
},
SessionUpdate {
event_id: Option<String>,
session: LiveSessionUpdate,
},
InputAudioAppend {
event_id: Option<String>,
audio: String,
},
InputAudioMute {
event_id: Option<String>,
},
InputAudioUnmute {
event_id: Option<String>,
},
InstructionsAppend {
event_id: Option<String>,
content: String,
delegation_id: Option<String>,
},
ThinkingAppend {
event_id: Option<String>,
content: String,
delegation_id: Option<String>,
},
CommentaryAppend {
event_id: Option<String>,
content: String,
delegation_id: Option<String>,
},
ResponseItemCreate {
event_id: Option<String>,
item: Value,
},
ResponseCreate {
event_id: Option<String>,
},
SessionClose {
event_id: Option<String>,
},
}Expand description
Events sent from the client to a Live WebSocket.
Variants§
SessionStart
SessionUpdate
InputAudioAppend
InputAudioMute
InputAudioUnmute
InstructionsAppend
ThinkingAppend
CommentaryAppend
ResponseItemCreate
ResponseCreate
SessionClose
Trait Implementations§
Source§impl Clone for ClientEvent
impl Clone for ClientEvent
Source§impl Debug for ClientEvent
impl Debug for ClientEvent
Auto Trait Implementations§
impl Freeze for ClientEvent
impl RefUnwindSafe for ClientEvent
impl Send for ClientEvent
impl Sync for ClientEvent
impl Unpin for ClientEvent
impl UnsafeUnpin for ClientEvent
impl UnwindSafe for ClientEvent
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