pub struct ToolExecutionResult {
pub tool_id: String,
pub success: bool,
pub output: Value,
pub error: Option<String>,
pub duration_ms: u64,
}Expand description
Tool execution result for agents
This struct represents the result of a tool execution within an agent workflow.
Fields§
§tool_id: StringThe tool ID that was executed
success: boolWhether the execution was successful
output: ValueThe output of the tool execution
error: Option<String>Any error message if the execution failed
duration_ms: u64The duration of the execution in milliseconds
Implementations§
Trait Implementations§
Source§impl Clone for ToolExecutionResult
impl Clone for ToolExecutionResult
Source§fn clone(&self) -> ToolExecutionResult
fn clone(&self) -> ToolExecutionResult
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 ToolExecutionResult
impl RefUnwindSafe for ToolExecutionResult
impl Send for ToolExecutionResult
impl Sync for ToolExecutionResult
impl Unpin for ToolExecutionResult
impl UnwindSafe for ToolExecutionResult
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