pub enum InferredAction {
FlagContradiction {
existing: MemoryId,
new: MemoryId,
reason: String,
},
MarkObsolete {
memory: MemoryId,
superseded_by: MemoryId,
},
InvalidateMemory {
memory: MemoryId,
superseded_by: MemoryId,
valid_until: u64,
},
DeduplicateExact {
duplicate: MemoryId,
keeper: MemoryId,
},
UpdateContent {
memory: MemoryId,
new_content: String,
reason: String,
},
CreateEdge {
source: MemoryId,
target: MemoryId,
edge_type: EdgeType,
weight: f32,
},
UpdateConfidence {
memory: MemoryId,
new_confidence: f32,
},
PropagateBeliefChange {
root: MemoryId,
delta: f32,
},
}Variants§
FlagContradiction
MarkObsolete
InvalidateMemory
Set valid_until on the old memory instead of deleting it.
DeduplicateExact
A byte-identical re-save: invalidate the duplicate and link it to the
surviving copy with a Derived edge (deduplication lineage), NOT a
Supersedes edge. A Supersedes edge here reads as a memory superseding an
exact copy of itself, which only shows up as noise in the conflict view.
UpdateContent
Update the content of an existing memory with merged information.
CreateEdge
UpdateConfidence
PropagateBeliefChange
Trait Implementations§
Source§impl Clone for InferredAction
impl Clone for InferredAction
Source§fn clone(&self) -> InferredAction
fn clone(&self) -> InferredAction
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 InferredAction
impl RefUnwindSafe for InferredAction
impl Send for InferredAction
impl Sync for InferredAction
impl Unpin for InferredAction
impl UnsafeUnpin for InferredAction
impl UnwindSafe for InferredAction
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