Skip to main content

Module memory

Module memory 

Source

Structs§

EpisodicEntry
MemorySearchResult
ProceduralEntry
RelationshipEntry
SemanticEntry
WorkingEntry

Functions§

cleanup_orphaned_working_memory
Delete working_memory rows whose session_id no longer exists in sessions.
fts_search
Search memory: FTS5 MATCH on memory_fts (working, episodic, semantic), LIKE fallback for others. Returns matching structured entries (content + category + source) up to limit, deduplicated.
list_semantic_categories
prune_dead_episodic
Delete episodic entries with importance <= 1 that are older than stale_days days. These low-signal entries accumulate over time and bloat the episodic tier without contributing useful retrieval context.
prune_stale_procedural
Delete procedural entries with zero activity (no successes AND no failures) that haven’t been updated in at least stale_days days.
record_procedural_failure
record_procedural_success
retrieve_episodic
retrieve_procedural
retrieve_relationship
retrieve_semantic
retrieve_semantic_all
retrieve_working
retrieve_working_all
store_episodic
store_procedural
store_relationship
store_semantic
store_working