pub struct TierConfig {
pub enabled: bool,
pub promotion_min_sessions: u32,
pub similarity_threshold: f32,
pub sweep_interval_secs: u64,
pub sweep_batch_size: usize,
pub scene_enabled: bool,
pub scene_similarity_threshold: f32,
pub scene_batch_size: usize,
pub scene_provider: ProviderName,
pub scene_sweep_interval_secs: u64,
}Expand description
Configuration for the AOI three-layer memory tier promotion system ([memory.tiers]).
When enabled = true, a background sweep promotes frequently-accessed episodic messages
to semantic tier by clustering near-duplicates and distilling them via an LLM call.
§Validation
Constraints enforced at deserialization time:
similarity_thresholdin[0.5, 1.0]promotion_min_sessions >= 2sweep_batch_size >= 1scene_similarity_thresholdin[0.5, 1.0]scene_batch_size >= 1
Fields§
§enabled: boolEnable the tier promotion system. When false, all messages remain episodic.
Default: false.
promotion_min_sessions: u32Minimum number of distinct sessions a fact must appear in before promotion.
Must be >= 2. Default: 3.
similarity_threshold: f32Cosine similarity threshold for clustering near-duplicate facts during sweep.
Must be in [0.5, 1.0]. Default: 0.92.
sweep_interval_secs: u64How often the background promotion sweep runs, in seconds. Default: 3600.
sweep_batch_size: usizeMaximum number of messages to evaluate per sweep cycle. Must be >= 1. Default: 100.
scene_enabled: boolEnable MemScene consolidation of semantic-tier messages. Default: false.
scene_similarity_threshold: f32Cosine similarity threshold for MemScene clustering. Must be in [0.5, 1.0]. Default: 0.80.
scene_batch_size: usizeMaximum unassigned semantic messages processed per scene consolidation sweep. Default: 50.
scene_provider: ProviderNameProvider name from [[llm.providers]] for scene label/profile generation.
Falls back to the primary provider when empty. Default: "".
scene_sweep_interval_secs: u64How often the background scene consolidation sweep runs, in seconds. Default: 7200.
Trait Implementations§
Source§impl Clone for TierConfig
impl Clone for TierConfig
Source§fn clone(&self) -> TierConfig
fn clone(&self) -> TierConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more