Episodic Memory
Record past events as time-stamped, first-person experiences — separately from extracted facts (semantic) and learned skills (procedural) — so the agent can recall what happened, in order, with full context.
Intent & Description
🎯 Intent
Record past events as time-stamped first-person experiences the agent can recall later — separately from extracted facts (semantic) and learned how-to (procedural).
📋 Context
An agent needs to remember what happened — when, in what order, with what context and outcome. This is the autobiographical layer: a record that yesterday the user asked about X, the agent answered Y, the user pushed back, and they converged on Z. Whether events are conversations, tool calls, or internal reasoning steps, the function is the same: preserve the temporal-experiential structure so the agent can reflect, learn, and surface relevant prior episodes.
💡 Solution
Park et al.’s Generative Agents memory stream (2023) is the canonical implementation: every observation is logged with a timestamp and importance score; retrieval combines recency, relevance, and importance; a periodic reflection pass derives higher-level insights from clusters of recent episodes. LangMem’s episodic channel stores past interactions for few-shot retrieval and procedure distillation. The substrate (vector store, append-only log, structured journal) is orthogonal to the function.
Real-world Use Case
- The agent needs to recall specific past interactions, not just distilled facts.
- Reflection or consolidation passes need raw episodes as input to derive insights or procedures.
- Temporal queries (“what did I do yesterday?”, “what changed since last week?”) must be answerable.
Source
📌 TL;DR
Log every agent experience with a timestamp and importance score — the autobiographical layer that makes reflection, temporal queries, and continuity all possible.
Advantages
- Causal chains survive — the agent can reconstruct what happened, in order, with context.
- Reflection and consolidation become possible — episodes feed semantic and procedural extraction.
- Temporal queries are answerable directly from the episode log.
Disadvantages
- Unbounded growth — needs compaction, decay, or tiered storage to stay manageable.
- Raw episode injection is noisy — without salience scoring, direct injection degrades reasoning.
- Privacy and retention boundaries are harder to enforce on event logs than on extracted facts.