pub struct ToolCallStats {
pub total: i64,
pub successful: i64,
}Expand description
Per-tool call statistics used during policy evaluation.
Fields§
§total: i64Total number of times the tool was called.
successful: i64Number of calls where is_error = false (confirmed successful). NULL is_error values are NOT counted as successful.
Trait Implementations§
Source§impl Clone for ToolCallStats
impl Clone for ToolCallStats
Source§fn clone(&self) -> ToolCallStats
fn clone(&self) -> ToolCallStats
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 ToolCallStats
impl Debug for ToolCallStats
Source§impl Default for ToolCallStats
impl Default for ToolCallStats
Source§fn default() -> ToolCallStats
fn default() -> ToolCallStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ToolCallStats
impl RefUnwindSafe for ToolCallStats
impl Send for ToolCallStats
impl Sync for ToolCallStats
impl Unpin for ToolCallStats
impl UnsafeUnpin for ToolCallStats
impl UnwindSafe for ToolCallStats
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