pub struct AgentStats {
pub tools: Option<u64>,
pub requests: Option<u64>,
pub done: Option<f64>,
pub context: Option<f64>,
pub context_label: Option<String>,
pub tokens: Option<u64>,
pub cost: Option<f64>,
pub age: Option<i64>,
pub took: Option<u64>,
}Expand description
An agent’s stats.
Fields§
§tools: Option<u64>Tool calls.
requests: Option<u64>Requests.
done: Option<f64>Fraction done, 0–1.
context: Option<f64>Context used, 0–1.
context_label: Option<String>The context meter’s label.
tokens: Option<u64>Tokens used.
cost: Option<f64>Cost in dollars.
age: Option<i64>Elapsed ms when sent.
took: Option<u64>Final duration in ms.
Trait Implementations§
Source§impl Clone for AgentStats
impl Clone for AgentStats
Source§impl Debug for AgentStats
impl Debug for AgentStats
Source§impl Default for AgentStats
impl Default for AgentStats
Source§impl PartialEq for AgentStats
impl PartialEq for AgentStats
Source§impl Serialize for AgentStats
impl Serialize for AgentStats
impl StructuralPartialEq for AgentStats
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