pub struct SessionMemoryCompactConfig {
pub min_tokens: usize,
pub min_text_block_messages: usize,
pub max_tokens: usize,
}Expand description
Configuration for session memory compaction thresholds
Fields§
§min_tokens: usizeMinimum tokens to preserve after compaction
min_text_block_messages: usizeMinimum number of messages with text blocks to keep
max_tokens: usizeMaximum tokens to preserve after compaction (hard cap)
Trait Implementations§
Source§impl Clone for SessionMemoryCompactConfig
impl Clone for SessionMemoryCompactConfig
Source§fn clone(&self) -> SessionMemoryCompactConfig
fn clone(&self) -> SessionMemoryCompactConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 SessionMemoryCompactConfig
impl Debug for SessionMemoryCompactConfig
Auto Trait Implementations§
impl Freeze for SessionMemoryCompactConfig
impl RefUnwindSafe for SessionMemoryCompactConfig
impl Send for SessionMemoryCompactConfig
impl Sync for SessionMemoryCompactConfig
impl Unpin for SessionMemoryCompactConfig
impl UnsafeUnpin for SessionMemoryCompactConfig
impl UnwindSafe for SessionMemoryCompactConfig
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