pub struct Recalled {
pub score: f64,
pub base_confidence: f64,
pub anchor_penalty: f64,
pub decay_factor: f64,
pub age: u64,
pub record: MemoryRecord,
}Expand description
One recalled record and the arithmetic that ranked it.
Every term is reported, not just the product: a ranking an agent cannot take apart is a ranking it has to trust, and the whole point of depreciating by evidence is that the evidence can be inspected.
Fields§
§score: f64base_confidence × anchor_penalty × decay_factor, in [0.0, 1.0].
Computed here and stored in no column.
base_confidence: f64The writer’s stated confidence, or DEFAULT_BASE_CONFIDENCE when it
stated none.
anchor_penalty: f64anchor_penalty for this record’s AnchorState against the current
tree.
decay_factor: f64Decay::factor for this record’s age.
age: u64Generations between this record and the newest one in the store. 0 for
the newest record itself.
record: MemoryRecordThe record, with its anchor state and applicability resolved against the tree this recall ran on.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Recalled
impl<'de> Deserialize<'de> for Recalled
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Recalled
Auto Trait Implementations§
impl Freeze for Recalled
impl RefUnwindSafe for Recalled
impl Send for Recalled
impl Sync for Recalled
impl Unpin for Recalled
impl UnsafeUnpin for Recalled
impl UnwindSafe for Recalled
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