pub enum AgentEvent {
Show 22 variants
TeamSpawned {
teammate_count: usize,
},
TeammateSpawned {
agent_id: AgentId,
name: String,
},
TaskStarted {
agent_id: AgentId,
name: String,
task_id: TaskId,
title: String,
},
Thinking {
agent_id: AgentId,
name: String,
content: String,
iteration: usize,
},
ToolCall {
agent_id: AgentId,
name: String,
tool_name: String,
arguments: String,
iteration: usize,
},
ToolResult {
agent_id: AgentId,
name: String,
tool_name: String,
result_preview: String,
iteration: usize,
},
TaskCompleted {
agent_id: AgentId,
name: String,
task_id: TaskId,
tokens_used: u64,
iterations: usize,
tool_calls: usize,
},
TaskFailed {
agent_id: AgentId,
name: String,
task_id: TaskId,
error: String,
},
PlanSubmitted {
agent_id: AgentId,
name: String,
task_id: TaskId,
plan_preview: String,
},
PlanApproved {
agent_id: AgentId,
name: String,
task_id: TaskId,
},
PlanRejected {
agent_id: AgentId,
name: String,
task_id: TaskId,
feedback: String,
},
TeammateMessage {
from: AgentId,
from_name: String,
to: AgentId,
content_preview: String,
},
TeammateIdle {
agent_id: AgentId,
name: String,
tasks_completed: usize,
},
ShutdownRequested {
agent_id: AgentId,
name: String,
},
ShutdownAccepted {
agent_id: AgentId,
name: String,
},
ShutdownRejected {
agent_id: AgentId,
name: String,
reason: String,
},
AgentShutdown {
agent_id: AgentId,
name: String,
},
HookRejected {
event_name: String,
feedback: String,
},
SubAgentSpawned {
agent_id: AgentId,
name: String,
description: String,
},
SubAgentCompleted {
agent_id: AgentId,
name: String,
tokens_used: u64,
iterations: usize,
tool_calls: usize,
final_content: String,
},
SubAgentFailed {
agent_id: AgentId,
name: String,
error: String,
},
Custom {
name: String,
data: Value,
},
}Variants§
TeamSpawned
TeammateSpawned
TaskStarted
Thinking
ToolCall
ToolResult
TaskCompleted
Fields
TaskFailed
PlanSubmitted
PlanApproved
PlanRejected
TeammateMessage
TeammateIdle
ShutdownRequested
ShutdownAccepted
ShutdownRejected
AgentShutdown
HookRejected
SubAgentSpawned
SubAgentCompleted
Fields
SubAgentFailed
Custom
Domain-specific custom event
Implementations§
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 · 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 AgentEvent
impl Debug for AgentEvent
Auto 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