pub struct ContextUsage {
pub tokens: Option<u64>,
pub context_window: u64,
}Expand description
How full the context window is.
Fields§
§tokens: Option<u64>Estimated context tokens, unknown right after a compaction.
context_window: u64The model’s context window.
Implementations§
Trait Implementations§
Source§impl Clone for ContextUsage
impl Clone for ContextUsage
impl Copy for ContextUsage
Source§impl Debug for ContextUsage
impl Debug for ContextUsage
impl Eq for ContextUsage
Source§impl PartialEq for ContextUsage
impl PartialEq for ContextUsage
impl StructuralPartialEq for ContextUsage
Auto Trait Implementations§
impl Forget for ContextUsage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.