pub struct AutoCompactor;Expand description
rho > auto_threshold: collapse history entirely except last K turns, updating compression log.
Trait Implementations§
Source§impl Compressor for AutoCompactor
impl Compressor for AutoCompactor
fn compress( &self, partitions: &mut ContextPartitions, _target_tokens: u32, _max_tokens: u32, preserve_k: usize, _summarizer: &dyn Summarizer, engine: &ContextTokenEngine, ) -> CompressResult
Auto Trait Implementations§
impl Freeze for AutoCompactor
impl RefUnwindSafe for AutoCompactor
impl Send for AutoCompactor
impl Sync for AutoCompactor
impl Unpin for AutoCompactor
impl UnsafeUnpin for AutoCompactor
impl UnwindSafe for AutoCompactor
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