pub struct ContextUsage {
pub tokens: Option<u64>,
pub context_window: u64,
pub percent: Option<f64>,
}Expand description
How full the context window is; tokens and percent are null while
unknown.
Fields§
§tokens: Option<u64>§context_window: u64§percent: Option<f64>Trait Implementations§
Source§impl Clone for ContextUsage
impl Clone for ContextUsage
Source§impl Debug for ContextUsage
impl Debug for ContextUsage
Source§impl PartialEq for ContextUsage
impl PartialEq for ContextUsage
Source§impl Serialize for ContextUsage
impl Serialize for ContextUsage
impl StructuralPartialEq for ContextUsage
Auto Trait Implementations§
impl Freeze for ContextUsage
impl RefUnwindSafe for ContextUsage
impl Send for ContextUsage
impl Sync for ContextUsage
impl Unpin for ContextUsage
impl UnsafeUnpin for ContextUsage
impl UnwindSafe for ContextUsage
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