pub struct SummaryMemoryConfig {
pub max_messages_before_summary: usize,
pub max_tokens_before_summary: usize,
pub keep_recent_messages: usize,
pub memory_key: String,
pub summary_key: String,
}Expand description
Configuration for summary-based memory management
Fields§
§max_messages_before_summary: usizeMaximum messages before summarization
max_tokens_before_summary: usizeMaximum total tokens before summarization
keep_recent_messages: usizeNumber of recent messages to keep after summarization
memory_key: StringMemory key for variables
summary_key: StringSummary key for variables
Trait Implementations§
Source§impl Clone for SummaryMemoryConfig
impl Clone for SummaryMemoryConfig
Source§fn clone(&self) -> SummaryMemoryConfig
fn clone(&self) -> SummaryMemoryConfig
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 SummaryMemoryConfig
impl Debug for SummaryMemoryConfig
Auto Trait Implementations§
impl Freeze for SummaryMemoryConfig
impl RefUnwindSafe for SummaryMemoryConfig
impl Send for SummaryMemoryConfig
impl Sync for SummaryMemoryConfig
impl Unpin for SummaryMemoryConfig
impl UnwindSafe for SummaryMemoryConfig
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