pub struct DecayConfig {
pub half_life: Duration,
pub freq_weight: f32,
pub floor: f32,
pub auto_archive_below_floor: bool,
pub default_recall_weights: Option<RecallWeights>,
}Expand description
Temporal decay configuration.
The defaults model a 30-day half-life, logarithmic reinforcement boost, and a conservative cold-memory floor without automatic archiving.
Fields§
§half_life: DurationHalf-life for exponential energy decay.
Default: 30 days.
freq_weight: f32Logarithmic frequency weight k in 1 + k * ln(1 + applications).
Default: 0.25.
floor: f32Energy floor below which experiences are cold.
Default: 0.05.
auto_archive_below_floor: boolReserved for future automatic archiving of cold experiences.
Inert in v0.5.0 — this flag round-trips through config but wires no
automatic archive behavior; setting it true is currently a no-op.
list_cold_experiences() only surfaces prune candidates — archiving
remains the consumer’s explicit decision. (Tracked: issues #20/#22.)
Default: false.
default_recall_weights: Option<RecallWeights>Default recall weights for energy-aware ranking.
None preserves legacy pure-similarity ranking.
Trait Implementations§
Source§impl Clone for DecayConfig
impl Clone for DecayConfig
Source§fn clone(&self) -> DecayConfig
fn clone(&self) -> DecayConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DecayConfig
impl Debug for DecayConfig
Source§impl Default for DecayConfig
impl Default for DecayConfig
Source§impl PartialEq for DecayConfig
impl PartialEq for DecayConfig
Source§fn eq(&self, other: &DecayConfig) -> bool
fn eq(&self, other: &DecayConfig) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DecayConfig
Auto Trait Implementations§
impl Freeze for DecayConfig
impl RefUnwindSafe for DecayConfig
impl Send for DecayConfig
impl Sync for DecayConfig
impl Unpin for DecayConfig
impl UnsafeUnpin for DecayConfig
impl UnwindSafe for DecayConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>
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>
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