Skip to main content

Module lifecycle

Module lifecycle 

Source

Structs§

ConsolidationResult
DecayPassResult
TtlError
TtlReport
Report from a single TTL sweep pass.

Enums§

DecayFunction
Custom decay function types.

Functions§

effective_importance
Compute effective importance using the specified or default decay curve. Default (Exponential): base_importance * e^(-decay_rate * hours) + 0.05 * ln(1 + access_count)
effective_importance_with
run_consolidation
Consolidate episodic memories into semantic summaries. Clusters by tag overlap and creates consolidated semantic memories.
run_decay_pass
Run a decay pass over all active memories for the given agent. Memories below forget_threshold are marked Forgotten. Memories below archive_threshold (but above forget) are marked Archived.
run_ttl_sweep
Hard-delete every memory whose expires_at is in the past.