Skip to main content

Module episodic

Module episodic 

Source
Expand description

Phase 9 — Episodic memory schema and recency scoring primitives.

Provides zero-I/O building blocks for agent memory tables:

  • EpisodicMemorySchema marker + episodic_columns constants
  • RecencyConfig / recency_weight — exponential time-decay
  • hybrid_score — fuses distance, recency, and importance into one ranking signal

These are pure-math functions with no async, no I/O, no external deps.

Modules§

episodic_columns
Canonical column names for episodic memory tables.

Structs§

EpisodicMemorySchema
Marker struct for episodic agent memory tables (Phase 9). Actual schema is enforced by column names in episodic_columns module.
RecencyConfig
Parameters for exponential time-decay of memory recency.

Functions§

hybrid_score
Compute the hybrid ranking score for a retrieved memory chunk.
recency_weight
Compute the recency weight for a memory chunk.