pub struct AgentStats {
pub session_id: String,
pub messages_count: u64,
pub tool_calls: HashMap<String, u64>,
pub tokens_in: u64,
pub tokens_out: u64,
pub cache_read: u64,
pub cache_create: u64,
pub started_at: i64,
pub cost_usd: f64,
pub total_duration_ms: u64,
pub total_api_ms: u64,
pub total_turns: u64,
}Fields§
§session_id: String§messages_count: u64§tool_calls: HashMap<String, u64>§tokens_in: u64§tokens_out: u64§cache_read: u64§cache_create: u64§started_at: i64§cost_usd: f64§total_duration_ms: u64§total_api_ms: u64§total_turns: u64Trait 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