pub struct ConsolidationConfig {Show 29 fields
pub preset: String,
pub dream_enabled: bool,
pub dream_interval_hours: u64,
pub dream_min_sessions: u32,
pub hot_max_entries: usize,
pub warm_max_entries: usize,
pub cold_max_entries: usize,
pub hot_token_budget: usize,
pub decay_enabled: bool,
pub decay_multiplier: f32,
pub decay_threshold: f32,
pub retention_days: u32,
pub auto_protection: bool,
pub protection_low_access: u32,
pub protection_medium_access: u32,
pub protection_high_access: u32,
pub protection_medium_sessions: u32,
pub protection_high_sessions: u32,
pub auto_classification: bool,
pub type_promotion_repetitions: u32,
pub compaction_line_threshold: usize,
pub llm_compaction: bool,
pub dream_model: Option<String>,
pub protection_demotion_enabled: bool,
pub protection_demotion_stale_days: u32,
pub protection_demotion_max_step: u32,
pub proactive_recall: bool,
pub proactive_recall_limit: usize,
pub proactive_recall_threshold: f32,
}Expand description
Memory consolidation configuration (RFC-008). All values have sensible defaults — users never need to configure these.
Fields§
§preset: StringPreset: “conservative” | “balanced” | “aggressive” | “custom”.
When not “custom”, all other fields are overridden by the preset values.
Call apply_preset() once during kernel init to resolve.
dream_enabled: bool§dream_interval_hours: u64§dream_min_sessions: u32§hot_max_entries: usize§warm_max_entries: usize§cold_max_entries: usize§hot_token_budget: usize§decay_enabled: bool§decay_multiplier: f32§decay_threshold: f32§retention_days: u32§auto_protection: bool§protection_low_access: u32§protection_medium_access: u32§protection_high_access: u32§protection_medium_sessions: u32§protection_high_sessions: u32§auto_classification: bool§type_promotion_repetitions: u32§compaction_line_threshold: usize§llm_compaction: bool§dream_model: Option<String>Optional model for Dream LLM operations (None = rule-based fallback).
protection_demotion_enabled: bool§protection_demotion_stale_days: u32§protection_demotion_max_step: u32§proactive_recall: bool§proactive_recall_limit: usize§proactive_recall_threshold: f32Implementations§
Source§impl ConsolidationConfig
impl ConsolidationConfig
Sourcepub fn apply_preset(&mut self)
pub fn apply_preset(&mut self)
Apply the preset to all fields.
Call once during kernel initialization.
When preset is “custom”, individual fields are left untouched.
Trait Implementations§
Source§impl Clone for ConsolidationConfig
impl Clone for ConsolidationConfig
Source§fn clone(&self) -> ConsolidationConfig
fn clone(&self) -> ConsolidationConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ConsolidationConfig
impl Debug for ConsolidationConfig
Source§impl Default for ConsolidationConfig
impl Default for ConsolidationConfig
Source§impl<'de> Deserialize<'de> for ConsolidationConfig
impl<'de> Deserialize<'de> for ConsolidationConfig
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
Source§impl From<&ConsolidationConfig> for DreamConfig
impl From<&ConsolidationConfig> for DreamConfig
Source§fn from(c: &ConsolidationConfig) -> Self
fn from(c: &ConsolidationConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ConsolidationConfig
impl RefUnwindSafe for ConsolidationConfig
impl Send for ConsolidationConfig
impl Sync for ConsolidationConfig
impl Unpin for ConsolidationConfig
impl UnsafeUnpin for ConsolidationConfig
impl UnwindSafe for ConsolidationConfig
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