pub struct AgentStats {
pub duration: Duration,
pub input_tokens: u64,
pub output_tokens: u64,
pub cost_usd: f64,
pub turns: u32,
}Fields§
§duration: Duration§input_tokens: u64§output_tokens: u64§cost_usd: f64§turns: u32Trait 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
Source§impl<'de> Deserialize<'de> for AgentStats
impl<'de> Deserialize<'de> for AgentStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. 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