pub struct AgentStats {
pub total_executions: u64,
pub successful_executions: u64,
pub failed_executions: u64,
pub avg_execution_time_ms: f64,
pub total_tokens_used: u64,
pub total_tool_calls: u64,
}Expand description
Agent 统计信息
Fields§
§total_executions: u64总执行次数
successful_executions: u64成功次数
failed_executions: u64失败次数
avg_execution_time_ms: f64平均执行时间 (毫秒)
total_tokens_used: u64总 Token 使用
total_tool_calls: u64总工具调用次数
Trait Implementations§
Source§impl Clone for AgentStats
impl Clone for AgentStats
Source§fn clone(&self) -> AgentStats
fn clone(&self) -> AgentStats
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 AgentStats
impl Debug for AgentStats
Source§impl Default for AgentStats
impl Default for AgentStats
Source§fn default() -> AgentStats
fn default() -> AgentStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AgentStats
impl RefUnwindSafe for AgentStats
impl Send for AgentStats
impl Sync for AgentStats
impl Unpin for AgentStats
impl UnsafeUnpin for AgentStats
impl UnwindSafe for AgentStats
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