pub struct ToolExecutionEndEvent {
pub runtime_context: Option<JsonValue>,
pub call_id: String,
pub tool_call_id: ToolCallId,
pub tool_name: ToolName,
pub output: Option<ToolOutcome>,
pub error: Option<ToolErrorInfo>,
pub duration: Duration,
}Expand description
A tool execution finished.
Fields§
§runtime_context: Option<JsonValue>Application runtime state (available to hooks; telemetry requires include_runtime_context).
call_id: StringCall id.
tool_call_id: ToolCallIdTool call id.
tool_name: ToolNameTool name.
output: Option<ToolOutcome>Output on success (only when record_outputs).
error: Option<ToolErrorInfo>Error on failure.
duration: DurationExecution time.
Trait Implementations§
Source§impl Clone for ToolExecutionEndEvent
impl Clone for ToolExecutionEndEvent
Source§fn clone(&self) -> ToolExecutionEndEvent
fn clone(&self) -> ToolExecutionEndEvent
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 ToolExecutionEndEvent
impl RefUnwindSafe for ToolExecutionEndEvent
impl Send for ToolExecutionEndEvent
impl Sync for ToolExecutionEndEvent
impl Unpin for ToolExecutionEndEvent
impl UnsafeUnpin for ToolExecutionEndEvent
impl UnwindSafe for ToolExecutionEndEvent
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