pub struct RunUsage {
pub tokens: usize,
pub iterations: usize,
pub duration: Duration,
}Expand description
Usage statistics from an agent run.
Fields§
§tokens: usizeTotal tokens consumed across all LLM calls.
iterations: usizeNumber of agent loop iterations.
duration: DurationWall-clock duration of the run.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RunUsage
impl RefUnwindSafe for RunUsage
impl Send for RunUsage
impl Sync for RunUsage
impl Unpin for RunUsage
impl UnsafeUnpin for RunUsage
impl UnwindSafe for RunUsage
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