pub struct AgentMetrics {
pub execution_count: u64,
pub success_count: u64,
pub error_count: u64,
pub avg_duration_ms: f64,
}Expand description
Metrics for an agent
This struct contains performance metrics for an agent across multiple executions.
Fields§
§execution_count: u64Total execution count
success_count: u64Successful executions
error_count: u64Failed executions
avg_duration_ms: f64Average duration in milliseconds
Trait Implementations§
Source§impl Clone for AgentMetrics
impl Clone for AgentMetrics
Source§fn clone(&self) -> AgentMetrics
fn clone(&self) -> AgentMetrics
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 AgentMetrics
impl Debug for AgentMetrics
Source§impl Default for AgentMetrics
impl Default for AgentMetrics
Source§fn default() -> AgentMetrics
fn default() -> AgentMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AgentMetrics
impl RefUnwindSafe for AgentMetrics
impl Send for AgentMetrics
impl Sync for AgentMetrics
impl Unpin for AgentMetrics
impl UnwindSafe for AgentMetrics
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