pub enum LiveEffect {
Noop,
SendContext(Vec<Content>),
PromptModel,
CancelDeferredPrompt,
SignalUserActivityStart,
SignalUserActivityEnd,
UpdateInstruction(String),
Emit(LiveEvent),
TransitionPhase(String),
}Expand description
A typed runtime effect emitted by a reaction.
Variants§
Noop
No operation; useful for conditional reaction builders.
SendContext(Vec<Content>)
Add state/context turns to the session.
PromptModel
Ask the model to generate from accumulated context.
CancelDeferredPrompt
Cancel a deferred model prompt while leaving queued context intact.
SignalUserActivityStart
Tell the Live API that user speech activity started.
SignalUserActivityEnd
Tell the Live API that user speech activity ended.
UpdateInstruction(String)
Replace or amend the active instruction.
Emit(LiveEvent)
Emit a semantic event for observers.
TransitionPhase(String)
Request a phase transition by name.
Trait Implementations§
Source§impl Clone for LiveEffect
impl Clone for LiveEffect
Source§fn clone(&self) -> LiveEffect
fn clone(&self) -> LiveEffect
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 LiveEffect
impl RefUnwindSafe for LiveEffect
impl Send for LiveEffect
impl Sync for LiveEffect
impl Unpin for LiveEffect
impl UnwindSafe for LiveEffect
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