pub struct ToolCallMetrics {
pub tool_call_id: String,
pub tool_name: String,
pub started_at: DateTime<Utc>,
pub completed_at: Option<DateTime<Utc>>,
pub success: Option<bool>,
pub error: Option<String>,
pub duration_ms: Option<u64>,
}Expand description
Metrics for a single tool call
Fields§
§tool_call_id: StringUnique identifier for the tool call
tool_name: StringName of the tool that was called
started_at: DateTime<Utc>When the tool call started
completed_at: Option<DateTime<Utc>>When the tool call completed
success: Option<bool>Whether the call succeeded
error: Option<String>Error message if the call failed
duration_ms: Option<u64>Duration of the call in milliseconds
Trait Implementations§
Source§impl Clone for ToolCallMetrics
impl Clone for ToolCallMetrics
Source§fn clone(&self) -> ToolCallMetrics
fn clone(&self) -> ToolCallMetrics
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 ToolCallMetrics
impl Debug for ToolCallMetrics
Source§impl<'de> Deserialize<'de> for ToolCallMetrics
impl<'de> Deserialize<'de> for ToolCallMetrics
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
Source§impl PartialEq for ToolCallMetrics
impl PartialEq for ToolCallMetrics
Source§fn eq(&self, other: &ToolCallMetrics) -> bool
fn eq(&self, other: &ToolCallMetrics) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ToolCallMetrics
impl Serialize for ToolCallMetrics
impl StructuralPartialEq for ToolCallMetrics
Auto Trait Implementations§
impl Freeze for ToolCallMetrics
impl RefUnwindSafe for ToolCallMetrics
impl Send for ToolCallMetrics
impl Sync for ToolCallMetrics
impl Unpin for ToolCallMetrics
impl UnsafeUnpin for ToolCallMetrics
impl UnwindSafe for ToolCallMetrics
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