BD Brain Drip
💾
Module 04 5 concepts

Memory & Persistence

State persistence, checkpointing, and memory patterns.

01

Checkpointers

Checkpointers save graph state at every step, enabling persistence, human-in-the-loop workflows, memory, time travel, and fault recovery.

02

Long-Term Memory Store

Cross-thread memory using a Store lets agents persist knowledge – user preferences, learned facts, and accumulated context – across entirely separate conversations.

03

State Inspection and Replay

Checkpointers let you inspect the current state, walk through the full history, and replay execution from any previous checkpoint – enabling time travel for debugging and recovery.

04

State Schema Design

Well-designed state schemas keep agent data flat, typed, and organized with reducers for messages, audit trails, and error tracking – making persistence, debugging, and scaling straightforward.

05

Thread-Based Memory

Thread-based memory gives an agent short-term recall within a single conversation by persisting messages across invocations that share the same thread_id.