Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

DataCamp

Google: Manage Agent Memory and State

via DataCamp

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
    • 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.
  • Dynamic Instructions with State
    • 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.
  • State Namespaces and Persistence
    • 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
    • Reading List

Taught by

Google Cloud

Reviews

Start your review of Google: Manage Agent Memory and State

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.