pub struct ContextMemoryView {
pub memory: Option<Arc<SemanticMemory>>,
pub conversation_id: Option<ConversationId>,
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 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<SemanticMemory>>Semantic memory backend. None when memory is disabled.
conversation_id: Option<ConversationId>Active conversation ID. 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.
tree_config: TreeConfigTiMem temporal-hierarchical memory tree configuration.
Auto Trait Implementations§
impl Freeze for ContextMemoryView
impl !RefUnwindSafe for ContextMemoryView
impl Send for ContextMemoryView
impl Sync for ContextMemoryView
impl Unpin for ContextMemoryView
impl UnsafeUnpin for ContextMemoryView
impl !UnwindSafe for ContextMemoryView
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request