Memory & Persistence
State persistence, checkpointing, and memory patterns.
Checkpointers
Checkpointers save graph state at every step, enabling persistence, human-in-the-loop workflows, memory, time travel, and fault recovery.
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.
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.
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.
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.