pub struct MemoryConfig {
pub default_mode: String,
pub default_mode_confirmed: bool,
pub recall_max_records: u32,
pub recall_max_tokens: u32,
pub recall_timeout_ms: u64,
pub capture_tools: String,
pub capture_assistant: bool,
pub capture_user: bool,
pub auto_consolidate: String,
pub local_embeddings: String,
pub gliner: String,
}Expand description
Continuous-memory settings surface (Task A2, spec §12). Every field is fail-closed: unknown or invalid values warn and keep the compiled default.
This struct contains continuous-memory policy; backend selection lives in
the separate MemoryBackendConfig.
Secret handling, retention, and project-scope rules are deliberately NOT
fields here — they are not configurable at all (spec §12: “Secret,
retention, and project rules are not configurable to fail open”).
Fields§
§default_mode: StringDurable default memory mode. “off” unless the operator explicitly
consents via memory.default_mode_confirmed = true in the same
config parse pass (spec §12 operator-consent rule). Known values:
off | recall_once | recall_each_prompt | capture_only |
capture_and_recall (spec §6.1).
default_mode_confirmed: boolOperator-consent latch for default_mode (spec §12). Must be set to
true in the same parse pass for a non-“off” default_mode to take
effect; otherwise default_mode reverts to “off” with a warning.
recall_max_records: u32Max records surfaced per recall (spec §10.3 budget).
recall_max_tokens: u32Max tokens surfaced per recall (spec §10.3 budget).
recall_timeout_ms: u64Recall time budget in milliseconds (spec §16).
capture_tools: StringTool-result capture policy: off | summary_only (spec §11).
capture_assistant: boolCapture assistant turns (spec §8.2).
capture_user: boolCapture user turns (spec §8.2).
auto_consolidate: StringBackground consolidation: off | on (spec §11.3, explicit opt-in).
local_embeddings: StringLocal embedding models: off | on (spec §11.2, never implicit).
gliner: StringGLiNER entity extraction: off | on (spec §11.2, never implicit).
Trait Implementations§
Source§impl Clone for MemoryConfig
impl Clone for MemoryConfig
Source§fn clone(&self) -> MemoryConfig
fn clone(&self) -> MemoryConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MemoryConfig
impl Debug for MemoryConfig
Source§impl Default for MemoryConfig
impl Default for MemoryConfig
Source§fn default() -> MemoryConfig
fn default() -> MemoryConfig
Source§impl PartialEq for MemoryConfig
impl PartialEq for MemoryConfig
impl StructuralPartialEq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.