Rewind and migrate sessions
Undo the last few turns of a conversation with rewind_async, and move a DatabaseSessionService database to the new schema with adk migrate session. See exactly what each one changes and what it leaves alone.
8 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 8 minutes.
Written from the official documentation
In this module: Context, sessions and memory
- Agent contextWhat each callback and tool can see.Pro
- SessionsOne conversation, its events and its lifecycle.Pro
- StateSession, user, app and temp prefixes.Pro
- MemoryRemembering across sessions.Pro
- ArtifactsFiles and binary data, versioned.Pro
- EventsThe event stream that drives everything.Pro
- Context caching and compressionCutting cost and fitting long histories.Pro
- Rewind and migrate sessionsGoing back in time; moving storage.Pro