pub struct RetentionConfig {
pub fact_recall_decay_after: Option<Duration>,
pub episode_recall_decay_after: Option<Duration>,
pub superseded_retention: Option<Duration>,
pub episode_retention: Option<Duration>,
}Expand description
Decay and retention windows (ports of the daemon’s decay_memories and
RetentionConfig defaults). None disables a step.
Fields§
§fact_recall_decay_after: Option<Duration>Facts not recalled for this long lose a tenth of their recall count (at least one) per pass. Default 14 days.
episode_recall_decay_after: Option<Duration>Episodes not recalled for this long lose one recall per pass. Default 30 days.
superseded_retention: Option<Duration>Superseded fact versions older than this are deleted. Default 90 days.
episode_retention: Option<Duration>Episodes never recalled and older than this are deleted. Default 365 days.
Trait Implementations§
Source§impl Clone for RetentionConfig
impl Clone for RetentionConfig
impl Copy for RetentionConfig
Source§impl Debug for RetentionConfig
impl Debug for RetentionConfig
Source§impl Default for RetentionConfig
impl Default for RetentionConfig
Source§impl PartialEq for RetentionConfig
impl PartialEq for RetentionConfig
impl StructuralPartialEq for RetentionConfig
Auto Trait Implementations§
impl Forget for RetentionConfig
impl Freeze for RetentionConfig
impl Move for RetentionConfig
impl RefUnwindSafe for RetentionConfig
impl Send for RetentionConfig
impl Sync for RetentionConfig
impl Unpin for RetentionConfig
impl UnsafeUnpin for RetentionConfig
impl UnwindSafe for RetentionConfig
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