pub struct LlmUsage {
pub prompt_tokens: u64,
pub completion_tokens: u64,
pub total_tokens: u64,
}Expand description
LLM usage information
Fields§
§prompt_tokens: u64Prompt tokens used
completion_tokens: u64Completion tokens used
total_tokens: u64Total tokens used
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LlmUsage
impl RefUnwindSafe for LlmUsage
impl Send for LlmUsage
impl Sync for LlmUsage
impl Unpin for LlmUsage
impl UnsafeUnpin for LlmUsage
impl UnwindSafe for LlmUsage
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