pub struct SessionStats {
pub events: usize,
pub model_calls: usize,
pub tool_calls: usize,
pub iters: u32,
pub input_tokens: u32,
pub output_tokens: u32,
pub stages_run: usize,
pub duration_ms: i64,
}Expand description
Stats from a single session — handy summary for the harness trace CLI.
Fields§
§events: usize§model_calls: usize§tool_calls: usize§iters: u32§input_tokens: u32§output_tokens: u32§stages_run: usize§duration_ms: i64Implementations§
Source§impl SessionStats
impl SessionStats
pub fn from(events: &[SessionEvent]) -> Self
Trait Implementations§
Source§impl Clone for SessionStats
impl Clone for SessionStats
Source§fn clone(&self) -> SessionStats
fn clone(&self) -> SessionStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SessionStats
impl Debug for SessionStats
Source§impl Default for SessionStats
impl Default for SessionStats
Source§fn default() -> SessionStats
fn default() -> SessionStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SessionStats
impl RefUnwindSafe for SessionStats
impl Send for SessionStats
impl Sync for SessionStats
impl Unpin for SessionStats
impl UnsafeUnpin for SessionStats
impl UnwindSafe for SessionStats
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