pub enum AssistantEvent {
TextDelta(String),
ToolUse {
id: String,
name: String,
input: String,
},
Thinking {
text: String,
thought_signature: Option<String>,
},
TaskStarted {
id: String,
label: String,
},
TaskCompleted {
id: String,
success: bool,
},
Usage(TokenUsage),
MessageStop,
ToolTelemetry {
text: String,
},
}Variants§
TextDelta(String)
ToolUse
Thinking
Reasoning/thinking text from a thinking model (Gemini, DeepSeek R1, etc.)
TaskStarted
TaskCompleted
Usage(TokenUsage)
MessageStop
ToolTelemetry
Trait Implementations§
Source§impl Clone for AssistantEvent
impl Clone for AssistantEvent
Source§fn clone(&self) -> AssistantEvent
fn clone(&self) -> AssistantEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AssistantEvent
impl Debug for AssistantEvent
Source§impl PartialEq for AssistantEvent
impl PartialEq for AssistantEvent
Source§fn eq(&self, other: &AssistantEvent) -> bool
fn eq(&self, other: &AssistantEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for AssistantEvent
impl StructuralPartialEq for AssistantEvent
Auto Trait Implementations§
impl Freeze for AssistantEvent
impl RefUnwindSafe for AssistantEvent
impl Send for AssistantEvent
impl Sync for AssistantEvent
impl Unpin for AssistantEvent
impl UnsafeUnpin for AssistantEvent
impl UnwindSafe for AssistantEvent
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