pub struct TieredMemoryConfig {
pub short_term_window: usize,
pub long_term_threshold: f32,
pub entity_extraction: bool,
pub summarize_on_evict: bool,
pub long_term_top_k: usize,
}Expand description
Configuration for TieredMemory.
Fields§
§short_term_window: usizeNumber of turns kept in the short-term (working memory) window.
long_term_threshold: f32Minimum cosine similarity for a long-term episode to be included in context.
entity_extraction: boolWhether to extract entities from each turn.
summarize_on_evict: boolWhether to summarise evicted turns before storing them in long-term memory.
long_term_top_k: usizeHow many long-term results to retrieve per query.
Trait Implementations§
Source§impl Clone for TieredMemoryConfig
impl Clone for TieredMemoryConfig
Source§fn clone(&self) -> TieredMemoryConfig
fn clone(&self) -> TieredMemoryConfig
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 TieredMemoryConfig
impl Debug for TieredMemoryConfig
Source§impl Default for TieredMemoryConfig
impl Default for TieredMemoryConfig
Source§impl<'de> Deserialize<'de> for TieredMemoryConfig
impl<'de> Deserialize<'de> for TieredMemoryConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TieredMemoryConfig
impl RefUnwindSafe for TieredMemoryConfig
impl Send for TieredMemoryConfig
impl Sync for TieredMemoryConfig
impl Unpin for TieredMemoryConfig
impl UnsafeUnpin for TieredMemoryConfig
impl UnwindSafe for TieredMemoryConfig
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