pub struct Metadata {
pub input_tokens: u64,
pub output_tokens: u64,
pub reasoning_tokens: Option<u64>,
pub reasoning: Option<String>,
}Expand description
What a run spent, and how it reasoned.
Fields§
§input_tokens: u64Tokens in what was sent.
output_tokens: u64Tokens in what came back.
reasoning_tokens: Option<u64>Tokens spent reasoning, when the run reported them.
reasoning: Option<String>The reasoning itself, when the run reported it.
Trait Implementations§
impl Eq for Metadata
impl StructuralPartialEq for Metadata
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnsafeUnpin for Metadata
impl UnwindSafe for Metadata
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