pub struct DecayPolicy {
pub fact_idle_days: i64,
pub fact_decay_divisor: i64,
pub episode_idle_days: i64,
pub pattern_idle_days: i64,
pub pattern_step: f32,
pub unused_automated_fact_days: i64,
}Expand description
How unrecalled memory fades. Facts not recalled for fact_idle_days
lose 1 / fact_decay_divisor of their recall count per pass (at least
one); episodes not recalled for episode_idle_days lose one; behavior
patterns not seen for pattern_idle_days lose pattern_step
confidence (down to 0.1). Background-extracted facts never recalled
and untouched for unused_automated_fact_days are archived (0 keeps
them).
Fields§
§fact_idle_days: i64§fact_decay_divisor: i64§episode_idle_days: i64§pattern_idle_days: i64§pattern_step: f32§unused_automated_fact_days: i64Trait Implementations§
Source§impl Clone for DecayPolicy
impl Clone for DecayPolicy
impl Copy for DecayPolicy
Source§impl Debug for DecayPolicy
impl Debug for DecayPolicy
Source§impl Default for DecayPolicy
impl Default for DecayPolicy
Source§impl PartialEq for DecayPolicy
impl PartialEq for DecayPolicy
impl StructuralPartialEq for DecayPolicy
Auto Trait Implementations§
impl Forget for DecayPolicy
impl Freeze for DecayPolicy
impl Move for DecayPolicy
impl RefUnwindSafe for DecayPolicy
impl Send for DecayPolicy
impl Sync for DecayPolicy
impl Unpin for DecayPolicy
impl UnsafeUnpin for DecayPolicy
impl UnwindSafe for DecayPolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
Converts
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> ⓘ
Converts
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 more