pub struct SessionTotals {
pub tokens_in: u64,
pub tokens_out: u64,
pub cache_read: u64,
pub cache_create: u64,
pub cost_usd: Option<f64>,
pub unique_models: Vec<String>,
}Expand description
Session-level totals for the --summary mode and future corpus
analytics. Cost is None when no step had a known model; otherwise it
sums Step::cost_usd() across steps that could be costed.
Fields§
§tokens_in: u64§tokens_out: u64§cache_read: u64§cache_create: u64§cost_usd: Option<f64>§unique_models: Vec<String>Implementations§
Source§impl SessionTotals
impl SessionTotals
pub fn has_tokens(&self) -> bool
Trait Implementations§
Source§impl Debug for SessionTotals
impl Debug for SessionTotals
Source§impl Default for SessionTotals
impl Default for SessionTotals
Source§fn default() -> SessionTotals
fn default() -> SessionTotals
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SessionTotals
impl RefUnwindSafe for SessionTotals
impl Send for SessionTotals
impl Sync for SessionTotals
impl Unpin for SessionTotals
impl UnsafeUnpin for SessionTotals
impl UnwindSafe for SessionTotals
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more