pub enum AgentEvent {
AssistantDelta(String),
AssistantMessage(Message),
ToolCallStart {
id: String,
name: String,
arguments: Value,
},
ToolCallFinish {
id: String,
name: String,
content: String,
is_error: bool,
},
Usage(Usage),
IterationBudgetExhausted,
Done,
}Expand description
Events emitted while the agent runs — consumed by the CLI to render streaming output and tool activity.
Variants§
AssistantDelta(String)
AssistantMessage(Message)
ToolCallStart
ToolCallFinish
Usage(Usage)
IterationBudgetExhausted
Done
Trait Implementations§
Source§impl Clone for AgentEvent
impl Clone for AgentEvent
Source§fn clone(&self) -> AgentEvent
fn clone(&self) -> AgentEvent
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 moreAuto Trait Implementations§
impl Freeze for AgentEvent
impl RefUnwindSafe for AgentEvent
impl Send for AgentEvent
impl Sync for AgentEvent
impl Unpin for AgentEvent
impl UnsafeUnpin for AgentEvent
impl UnwindSafe for AgentEvent
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