#[non_exhaustive]pub struct TaskStats {
pub turns: u32,
pub input_tokens: u64,
pub output_tokens: u64,
pub cost_usd: f64,
}Expand description
Statistics from task execution.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.turns: u32Number of conversation turns.
input_tokens: u64Total input tokens used.
output_tokens: u64Total output tokens generated.
cost_usd: f64Estimated cost in USD.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TaskStats
impl RefUnwindSafe for TaskStats
impl Send for TaskStats
impl Sync for TaskStats
impl Unpin for TaskStats
impl UnwindSafe for TaskStats
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