Managing conversation history
A saved conversation grows with every turn until the model can no longer read it. Watch three ways to keep it small (trim, delete and summarize) and see what each one keeps and what it loses.
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