pub enum ContextWindowSize {
Small8K,
Medium32K,
Large128K,
Huge256K,
Custom(u32),
}Variants§
Implementations§
Source§impl ContextWindowSize
impl ContextWindowSize
pub fn tokens(&self) -> u32
pub fn default_size() -> Self
pub fn usage_percentage(&self, used_tokens: u32) -> f64
Trait Implementations§
Source§impl Clone for ContextWindowSize
impl Clone for ContextWindowSize
impl Copy for ContextWindowSize
Auto Trait Implementations§
impl Forget for ContextWindowSize
impl Freeze for ContextWindowSize
impl RefUnwindSafe for ContextWindowSize
impl Send for ContextWindowSize
impl Sync for ContextWindowSize
impl Unpin for ContextWindowSize
impl UnsafeUnpin for ContextWindowSize
impl UnwindSafe for ContextWindowSize
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