pub struct ToolStats {
pub total_calls: u64,
pub successful_calls: u64,
pub failed_calls: u64,
pub total_retries: u64,
pub circuit_breaks: u64,
pub timeouts: u64,
pub total_latency_ms: f64,
}Expand description
Tool execution statistics
Fields§
§total_calls: u64§successful_calls: u64§failed_calls: u64§total_retries: u64§circuit_breaks: u64§timeouts: u64§total_latency_ms: f64Implementations§
Source§impl ToolStats
impl ToolStats
pub fn success_rate(&self) -> f64
pub fn avg_latency_ms(&self) -> f64
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ToolStats
impl<'de> Deserialize<'de> for ToolStats
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 ToolStats
impl RefUnwindSafe for ToolStats
impl Send for ToolStats
impl Sync for ToolStats
impl Unpin for ToolStats
impl UnsafeUnpin for ToolStats
impl UnwindSafe for ToolStats
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