pub enum ToolExecutionEvent {
ToolStarted {
tool_call_id: String,
name: String,
detail: String,
},
ToolProgress {
tool_call_id: Option<String>,
name: String,
message: String,
data: Option<Value>,
},
ApprovalRequested {
tool_call_id: String,
name: String,
reason: String,
},
ApprovalResolved {
tool_call_id: String,
name: String,
decision: String,
},
PolicyStarted {
point: String,
name: String,
},
PolicyCompleted {
point: String,
name: String,
feedback_count: usize,
},
}Expand description
Lifecycle event emitted by the executor for one tool invocation.
Variants§
ToolStarted
Emitted once when the tool starts (after permission, before invoke).
ToolProgress
Streaming progress update from inside the tool.
ApprovalRequested
A tool call has been suspended pending human approval.
ApprovalResolved
Human approval has been resolved for a suspended tool call.
PolicyStarted
PolicyCompleted
Trait Implementations§
Source§impl Clone for ToolExecutionEvent
impl Clone for ToolExecutionEvent
Source§fn clone(&self) -> ToolExecutionEvent
fn clone(&self) -> ToolExecutionEvent
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 moreAuto Trait Implementations§
impl Freeze for ToolExecutionEvent
impl RefUnwindSafe for ToolExecutionEvent
impl Send for ToolExecutionEvent
impl Sync for ToolExecutionEvent
impl Unpin for ToolExecutionEvent
impl UnsafeUnpin for ToolExecutionEvent
impl UnwindSafe for ToolExecutionEvent
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