What You Need to Know Before
You Start
Starts 5 July 2026 09:06
Ends 5 July 2026
00
Days
00
Hours
00
Minutes
00
Seconds
2 hours
Optional upgrade avallable
Intermediate
Progress at your own speed
Free Trial Available
Optional upgrade avallable
Overview
Build stateful AI agents that maintain context and remember user preferences using session state, memory management, and personalization. You've built basic LLM agents that respond to queries—now let's make them stateful.
Use session state to build agents that maintain context, remember user preferences, and provide personalized experiences. Transform agents from stateless responders to intelligent assistants.
Syllabus
- Session State Fundamentals
- Dynamic Instructions with State
- State Namespaces and Persistence
- Reading List
Session state is a dictionary where your agent stores data it needs to remember and access programmatically. Unlike conversation history (which only the LLM can read), session state gives you code-level access to exact values.
In Part 1, you learned that session state is a dictionary you can access programmatically. Now you'll learn to inject state values into agent instructions using {var} templating, enabling dynamic agent behavior.
You've learned to use state for programmatic control and data passing. Now you'll master state namespaces—controlling how long state values persist and who can access them.
Reading List
Taught by
Google Cloud
Subjects
Artificial Intelligence