pub struct MemoryConfig {
pub short_term_size: usize,
pub enable_long_term: bool,
pub retrieval_limit: usize,
pub relevance_threshold: f32,
pub max_context_tokens: u64,
pub importance_decay: f32,
}Expand description
Memory configuration
Fields§
§short_term_size: usizeShort-term buffer size (number of messages)
enable_long_term: boolEnable long-term memory storage
retrieval_limit: usizeMaximum memories to retrieve
relevance_threshold: f32Similarity threshold for retrieval (0.0 - 1.0)
max_context_tokens: u64Maximum tokens for context building
importance_decay: f32Importance decay rate per day
Trait Implementations§
Source§impl Clone for MemoryConfig
impl Clone for MemoryConfig
Source§fn clone(&self) -> MemoryConfig
fn clone(&self) -> MemoryConfig
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 MemoryConfig
impl Debug for MemoryConfig
Auto Trait Implementations§
impl Freeze for MemoryConfig
impl RefUnwindSafe for MemoryConfig
impl Send for MemoryConfig
impl Sync for MemoryConfig
impl Unpin for MemoryConfig
impl UnsafeUnpin for MemoryConfig
impl UnwindSafe for MemoryConfig
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