pub struct ContextUsageInfo {
pub percentage: f64,
pub current_usage_tokens: u64,
pub context_window_size: Option<u64>,
pub accuracy: ContextAccuracy,
}Expand description
Context usage information (used for display formatting)
Fields§
§percentage: f64§current_usage_tokens: u64§context_window_size: Option<u64>§accuracy: ContextAccuracyAuto Trait Implementations§
impl Freeze for ContextUsageInfo
impl RefUnwindSafe for ContextUsageInfo
impl Send for ContextUsageInfo
impl Sync for ContextUsageInfo
impl Unpin for ContextUsageInfo
impl UnsafeUnpin for ContextUsageInfo
impl UnwindSafe for ContextUsageInfo
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