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.
By construction this struct is the complete memory.* config surface.
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 more