pub struct CompactionSettings {
pub enabled: bool,
pub reserve_tokens: u64,
pub keep_recent_tokens: u64,
}Expand description
Per-session config for compaction behaviour.
Fields§
§enabled: bool§reserve_tokens: u64Tokens to reserve for system prompt, tool defs, and the response.
keep_recent_tokens: u64Number of most-recent tokens to always keep (never summarised).
Trait Implementations§
Source§impl Clone for CompactionSettings
impl Clone for CompactionSettings
Source§fn clone(&self) -> CompactionSettings
fn clone(&self) -> CompactionSettings
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompactionSettings
impl Debug for CompactionSettings
Auto Trait Implementations§
impl Freeze for CompactionSettings
impl RefUnwindSafe for CompactionSettings
impl Send for CompactionSettings
impl Sync for CompactionSettings
impl Unpin for CompactionSettings
impl UnsafeUnpin for CompactionSettings
impl UnwindSafe for CompactionSettings
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