pub struct ExecutionResult {
pub tool_name: String,
pub result: Value,
pub duration: Duration,
pub success: bool,
pub error: Option<String>,
pub retries: u32,
pub timestamp: SystemTime,
pub cache_hit: bool,
}Expand description
Detailed outcome of a tool execution.
Fields§
§tool_name: StringName of the tool that was executed.
result: ValueThe tool’s return value (JSON).
duration: DurationWall-clock duration of the (possibly retried) execution.
success: boolWhether the execution succeeded.
error: Option<String>Error message, present only on failure.
retries: u32Number of retries performed.
timestamp: SystemTimeWhen the execution completed.
cache_hit: boolWhether the value came from the executor cache.
Trait Implementations§
Source§impl Clone for ExecutionResult
impl Clone for ExecutionResult
Source§fn clone(&self) -> ExecutionResult
fn clone(&self) -> ExecutionResult
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 moreSource§impl Debug for ExecutionResult
impl Debug for ExecutionResult
Auto Trait Implementations§
impl Freeze for ExecutionResult
impl RefUnwindSafe for ExecutionResult
impl Send for ExecutionResult
impl Sync for ExecutionResult
impl Unpin for ExecutionResult
impl UnsafeUnpin for ExecutionResult
impl UnwindSafe for ExecutionResult
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