Long-term memory with stores
A checkpointer remembers one conversation. A store remembers facts across all of them. Watch a food app save Asha's preference on Monday, find it in a new chat on Friday, and keep it away from another user.
10 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 10 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