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§impl Debug for SessionStats
impl Debug for SessionStats
Auto Trait Implementations§
impl Forget for SessionStats
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