pub struct RecallContextResult {
pub context: Vec<ScoredMemory>,
pub pain_warnings: Vec<PainWarning>,
pub cache_hit: bool,
pub delta_added: Vec<MemoryId>,
pub delta_removed: Vec<MemoryId>,
}Expand description
The read half of a turn: what the caller needs to build its next prompt.
Produced by MenteDb::recall_turn_context; feed context to
MenteDb::ingest_turn so analysis sees what the caller saw.
Fields§
§context: Vec<ScoredMemory>Retrieved context memories (scored and ranked).
pain_warnings: Vec<PainWarning>Pain warnings triggered by the user message.
cache_hit: boolWhether context came from the speculative cache.
delta_added: Vec<MemoryId>Delta: memory IDs added since last turn.
delta_removed: Vec<MemoryId>Delta: memory IDs removed since last turn.
Trait Implementations§
Source§impl Clone for RecallContextResult
impl Clone for RecallContextResult
Source§fn clone(&self) -> RecallContextResult
fn clone(&self) -> RecallContextResult
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 moreAuto Trait Implementations§
impl Freeze for RecallContextResult
impl RefUnwindSafe for RecallContextResult
impl Send for RecallContextResult
impl Sync for RecallContextResult
impl Unpin for RecallContextResult
impl UnsafeUnpin for RecallContextResult
impl UnwindSafe for RecallContextResult
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