Checkpointers and threads
A graph forgets everything when a run ends, unless you give it a checkpointer. Watch one conversation continue on the same thread, a new thread start blank, and an in-memory checkpointer lose everything on a restart.
11 minPro
Checking your access…
Inside this lesson
- An animation you play, pause and step through, with each part saying what it is doing.
- The real code beside it, with the lines for each step lit up.
- Practice mode, where you route each message yourself, and a short quiz.
- About 11 minutes.
Written from the official documentation
In this module: Persistence and memory
- Checkpointers and threadsSave state at every step and resume a thread by its ID.Pro
- State history and time travelRead past checkpoints, replay a run or fork it with new state.Pro
- Durability modes and safe replaysChoose exit, async or sync writes and keep side effects idempotent.Pro
- Checkpointer backendsSQLite, Postgres and other savers, serializers and custom savers.Pro
- Managing conversation historyTrim, delete or summarize messages so the context still fits.Pro
- Long-term memory with storesNamespaced items and semantic search shared across threads.Pro