pub struct ToolExecMetrics {
pub tool_name: String,
pub duration: Duration,
pub success: bool,
}Expand description
Timing and outcome data for a single tool execution within a turn.
Fields§
§tool_name: StringName of the tool that was executed.
duration: DurationWall-clock duration of the tool execution.
success: boolWhether the tool execution succeeded (true) or returned an error.
Trait Implementations§
Source§impl Clone for ToolExecMetrics
impl Clone for ToolExecMetrics
Source§fn clone(&self) -> ToolExecMetrics
fn clone(&self) -> ToolExecMetrics
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 ToolExecMetrics
impl Debug for ToolExecMetrics
Source§impl<'de> Deserialize<'de> for ToolExecMetrics
impl<'de> Deserialize<'de> for ToolExecMetrics
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 ToolExecMetrics
impl RefUnwindSafe for ToolExecMetrics
impl Send for ToolExecMetrics
impl Sync for ToolExecMetrics
impl Unpin for ToolExecMetrics
impl UnsafeUnpin for ToolExecMetrics
impl UnwindSafe for ToolExecMetrics
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