pub enum AgentEvent {
TextDelta(String),
ToolCallRequested {
tool_call_id: String,
name: String,
arguments: String,
},
ToolCallResult {
tool_call_id: String,
result: ToolResult,
},
TurnComplete,
Error(AgentError),
SkillTriggered {
name: String,
description: String,
},
}Expand description
Events pushed from Agent to Frontend.
Variants§
TextDelta(String)
Streaming text delta from LLM response.
ToolCallRequested
LLM requested a tool call. Frontend should display and optionally wait for confirmation.
ToolCallResult
Tool execution completed with result.
TurnComplete
Current turn is complete (LLM finished responding, no more tool calls).
Error(AgentError)
An error occurred during agent execution.
SkillTriggered
A skill was triggered. Frontend can display this as a system notice.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AgentEvent
impl !UnwindSafe for AgentEvent
impl Freeze for AgentEvent
impl Send for AgentEvent
impl Sync for AgentEvent
impl Unpin for AgentEvent
impl UnsafeUnpin 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