pub struct ContextMemoryView {Show 15 fields
pub memory: Option<Arc<dyn ContextMemoryBackend>>,
pub conversation_id: Option<i64>,
pub recall_limit: usize,
pub cross_session_score_threshold: f32,
pub context_strategy: ContextStrategy,
pub crossover_turn_threshold: u32,
pub cached_session_digest: Option<(String, usize)>,
pub graph_config: GraphConfig,
pub document_config: DocumentConfig,
pub persona_config: PersonaConfig,
pub trajectory_config: TrajectoryConfig,
pub reasoning_config: ReasoningConfig,
pub memcot_config: MemCotConfig,
pub memcot_state: Option<String>,
pub tree_config: TreeConfig,
}Expand description
Read-only snapshot of memory subsystem state needed for context assembly.
This struct is populated by the caller (zeph-core) from MemoryState before each
assembly pass. It contains only the fields that crate::assembler::ContextAssembler
actually reads — no Agent methods, no mutation.
Fields§
§memory: Option<Arc<dyn ContextMemoryBackend>>Semantic memory backend. None when memory is disabled.
conversation_id: Option<i64>Active conversation ID (conversations.id raw value). None before the first message is persisted.
recall_limit: usizeMaximum number of semantic recall hits injected per turn.
cross_session_score_threshold: f32Minimum semantic similarity score for cross-session recall (0.0–1.0).
context_strategy: ContextStrategyContext assembly strategy (FullHistory / MemoryFirst / Adaptive).
crossover_turn_threshold: u32Turn threshold for Adaptive strategy crossover.
cached_session_digest: Option<(String, usize)>Cached session digest text and token count, loaded at session start.
graph_config: GraphConfigKnowledge graph configuration.
document_config: DocumentConfigDocument RAG configuration.
persona_config: PersonaConfigPersona memory configuration.
trajectory_config: TrajectoryConfigTrajectory-informed memory configuration.
reasoning_config: ReasoningConfigReasoningBank configuration (#3343).
memcot_config: MemCotConfigMemCoT semantic state configuration (#3574).
memcot_state: Option<String>Current MemCoT semantic state buffer snapshot. Some when MemCoT is enabled and the
accumulator has distilled at least one turn.
tree_config: TreeConfigTiMem temporal-hierarchical memory tree configuration.