pub enum RealtimeCommand {
StopSession,
SendAudio(Vec<u8>),
SendText(String),
Interrupt,
UpdateSessionConfig {
voice: String,
transcription_model: String,
},
CreateGreetingResponse,
SendFunctionCallResult {
call_id: String,
output: String,
},
}Expand description
Commands sent from the UI to the realtime client
Variants§
StopSession
Stop the realtime session
SendAudio(Vec<u8>)
Send audio data (PCM16 format)
SendText(String)
Send text message
Interrupt
Interrupt current AI response
UpdateSessionConfig
Update session configuration
CreateGreetingResponse
Create a greeting response from AI
SendFunctionCallResult
Send function call result back to AI
Trait Implementations§
Source§impl Clone for RealtimeCommand
impl Clone for RealtimeCommand
Source§fn clone(&self) -> RealtimeCommand
fn clone(&self) -> RealtimeCommand
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 RealtimeCommand
impl RefUnwindSafe for RealtimeCommand
impl Send for RealtimeCommand
impl Sync for RealtimeCommand
impl Unpin for RealtimeCommand
impl UnwindSafe for RealtimeCommand
Blanket Implementations§
§impl<T> ActionTrait for T
impl<T> ActionTrait for T
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