pub struct MemoryManagerConfig {
pub stores: Vec<Arc<dyn MemoryStore>>,
pub search_tool_config: Option<Toggle<MemoryToolConfig>>,
pub add_tool_config: Option<Toggle<MemoryAddToolConfig>>,
pub injection: Option<Toggle<MemoryInjectionConfig>>,
}Expand description
Configuration for the MemoryManager (MemoryManagerConfig).
The Toggle options take true/false or a config through into().
Fields§
§stores: Vec<Arc<dyn MemoryStore>>The memory stores; at least one.
search_tool_config: Option<Toggle<MemoryToolConfig>>The search_memory tool. Defaults to on.
add_tool_config: Option<Toggle<MemoryAddToolConfig>>The add_memory tool. Defaults to off; true writes to all writable stores that
implement add.
injection: Option<Toggle<MemoryInjectionConfig>>Memory context injection. Defaults to on (trigger user turn, 5 entries, the adaptive
query and the <memory> format).
Implementations§
Source§impl MemoryManagerConfig
impl MemoryManagerConfig
Sourcepub fn builder() -> MemoryManagerConfigBuilder
pub fn builder() -> MemoryManagerConfigBuilder
Create an instance of MemoryManagerConfig using the builder syntax
Trait Implementations§
Source§impl Clone for MemoryManagerConfig
impl Clone for MemoryManagerConfig
Source§impl Debug for MemoryManagerConfig
impl Debug for MemoryManagerConfig
Source§impl Default for MemoryManagerConfig
impl Default for MemoryManagerConfig
Source§impl From<MemoryManagerConfig> for MemoryManagerSource
impl From<MemoryManagerConfig> for MemoryManagerSource
Source§fn from(config: MemoryManagerConfig) -> Self
fn from(config: MemoryManagerConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for MemoryManagerConfig
impl !UnwindSafe for MemoryManagerConfig
impl Freeze for MemoryManagerConfig
impl Send for MemoryManagerConfig
impl Sync for MemoryManagerConfig
impl Unpin for MemoryManagerConfig
impl UnsafeUnpin for MemoryManagerConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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 moreCreates a shared type from an unshared type.