pub struct MemoryConfig {Show 24 fields
pub enabled: bool,
pub storage_path: String,
pub embedding_model: String,
pub embedding_dimension: usize,
pub embedding_api_key_env: String,
pub embedding_provider: String,
pub embedding_api_base: String,
pub auto_recall: bool,
pub auto_capture: bool,
pub max_recall_results: usize,
pub recall_min_query_length: usize,
pub recall_cooldown_turns: usize,
pub profile_frequency: usize,
pub capture_mode: String,
pub container_tag: String,
pub vector_weight: f32,
pub fts_weight: f32,
pub temporal_decay_lambda: f64,
pub mmr_lambda: f64,
pub min_capture_length: usize,
pub chunk_size: usize,
pub chunk_overlap: usize,
pub retention_days: Option<u32>,
pub max_memories: Option<usize>,
}Fields§
§enabled: bool§storage_path: String§embedding_model: String§embedding_dimension: usize§embedding_api_key_env: String§embedding_provider: String§embedding_api_base: String§auto_recall: bool§auto_capture: bool§max_recall_results: usize§recall_min_query_length: usize§recall_cooldown_turns: usize§profile_frequency: usize§capture_mode: String§container_tag: String§vector_weight: f32§fts_weight: f32§temporal_decay_lambda: f64§mmr_lambda: f64§min_capture_length: usize§chunk_size: usize§chunk_overlap: usize§retention_days: Option<u32>§max_memories: Option<usize>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
Source§impl Default for MemoryConfig
impl Default for MemoryConfig
Source§impl<'de> Deserialize<'de> for MemoryConfig
impl<'de> Deserialize<'de> for MemoryConfig
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more