pub enum AgentEventType {
Show 24 variants
RunStarted {},
RunFinished {
success: bool,
total_steps: usize,
failed_steps: usize,
},
RunError {
message: String,
code: Option<String>,
},
PlanStarted {
initial_plan: bool,
},
PlanFinished {
total_steps: usize,
},
PlanPruned {
removed_steps: Vec<String>,
},
StepStarted {
step_id: String,
step_index: usize,
},
StepCompleted {
step_id: String,
success: bool,
},
ToolExecutionStart {
step_id: String,
tool_call_id: String,
tool_call_name: String,
input: Value,
},
ToolExecutionEnd {
step_id: String,
tool_call_id: String,
tool_call_name: String,
success: bool,
},
TextMessageStart {
message_id: String,
step_id: String,
role: MessageRole,
is_final: Option<bool>,
},
TextMessageContent {
message_id: String,
step_id: String,
delta: String,
stripped_content: Option<Vec<(usize, String)>>,
},
TextMessageEnd {
message_id: String,
step_id: String,
},
ToolCalls {
step_id: String,
parent_message_id: Option<String>,
tool_calls: Vec<ToolCall>,
},
ToolResults {
step_id: String,
parent_message_id: Option<String>,
results: Vec<ToolResponse>,
},
AgentHandover {
from_agent: String,
to_agent: String,
reason: Option<String>,
},
WorkflowStarted {
workflow_name: String,
total_steps: usize,
},
NodeStarted {
node_id: String,
node_name: String,
step_type: String,
},
NodeCompleted {
node_id: String,
node_name: String,
success: bool,
error: Option<String>,
},
RunCompleted {
workflow_name: String,
success: bool,
total_steps: usize,
},
RunFailed {
workflow_name: String,
error: String,
failed_at_step: Option<String>,
},
BrowserScreenshot {
image: String,
format: Option<String>,
filename: Option<String>,
size: Option<u64>,
timestamp_ms: Option<i64>,
},
InlineHookRequested {
request: InlineHookRequest,
},
TodosUpdated {
formatted_todos: String,
action: String,
todo_count: usize,
},
}Variants§
RunStarted
RunFinished
RunError
PlanStarted
PlanFinished
PlanPruned
StepStarted
StepCompleted
ToolExecutionStart
ToolExecutionEnd
TextMessageStart
TextMessageContent
Fields
TextMessageEnd
ToolCalls
ToolResults
AgentHandover
WorkflowStarted
NodeStarted
NodeCompleted
RunCompleted
RunFailed
BrowserScreenshot
Fields
InlineHookRequested
Fields
§
request: InlineHookRequestTodosUpdated
Trait Implementations§
Source§impl Clone for AgentEventType
impl Clone for AgentEventType
Source§fn clone(&self) -> AgentEventType
fn clone(&self) -> AgentEventType
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 AgentEventType
impl Debug for AgentEventType
Source§impl<'de> Deserialize<'de> for AgentEventType
impl<'de> Deserialize<'de> for AgentEventType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AgentEventType
impl RefUnwindSafe for AgentEventType
impl Send for AgentEventType
impl Sync for AgentEventType
impl Unpin for AgentEventType
impl UnwindSafe for AgentEventType
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