pub struct Procedural {
pub rule_id: SymbolId,
pub trigger: Value,
pub action: Value,
pub precondition: Option<Value>,
pub scope: SymbolId,
pub source: SymbolId,
pub confidence: Confidence,
}Expand description
A Procedural memory — a trigger-action rule that directs future behavior.
See memory-type-taxonomy.md § 3.3.
Fields§
§rule_id: SymbolIdStable memory ID for this rule.
trigger: ValueTrigger condition — typically a string describing the match.
action: ValueAction to take on match.
precondition: Option<Value>Optional additional gating on the trigger.
scope: SymbolIdScope in which this rule applies (e.g. @mimir_repo).
source: SymbolIdGrounding source.
confidence: ConfidenceStored confidence at write time.
Trait Implementations§
Source§impl Clone for Procedural
impl Clone for Procedural
Source§fn clone(&self) -> Procedural
fn clone(&self) -> Procedural
Returns a duplicate of the value. Read more
1.0.0 · 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 Procedural
impl Debug for Procedural
Source§impl PartialEq for Procedural
impl PartialEq for Procedural
impl StructuralPartialEq for Procedural
Auto Trait Implementations§
impl Freeze for Procedural
impl RefUnwindSafe for Procedural
impl Send for Procedural
impl Sync for Procedural
impl Unpin for Procedural
impl UnsafeUnpin for Procedural
impl UnwindSafe for Procedural
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