How to add short-term memory to your AI agent (Sessions & State Explained)

Google Cloud Tech · Beginner ·🧠 Large Language Models ·1mo ago
Lab → https://goo.gle/agentmemorylab ADK doc →https://goo.gle/4t2J6BG ADK crash course → https://goo.gle/adk-lab Learn how to pass information between agents with agent short term memory. Annie breaks down short-term memory for AI agents using Google's Agent Development Kit (ADK), including how sessions, events, and state work together to keep your agent context aware. Chapters: 0:00 - Intro 1:22 - What a session is and why it matters for agent memory 2:00 - [Demo] Memory loss vs memory fixed 2:48 - The difference between events (full interaction logs) and state (quick-access context) 3:53 - A live demo comparing an agent with and without short-term memory 5:05 - Recap This is part 1 of a 3 part memory series — stay tuned for episodes on persistent memory and long-term memory! More resources: Source code → https://goo.gle/40Qi7NJ ADK Sample → https://goo.gle/4sznhtK Watch more AI agent crash course → https://goo.gle/AIforBeginners 🔔 Subscribe to Google Cloud Tech → https://goo.gle/GoogleCloudTech #GoogleCloud #AIAgents Speakers: Annie Wang Products Mentioned: Agent Development Kit, Gemini
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Related AI Lessons

The Wall Every AI Has Been Hitting And the Startup That Claims to Have Broken Through
Startup SubQ claims to have broken through the context length constraint in AI, solving a decade-long limitation
Medium · LLM
Unsolved AI Mystery Is Solved Along With Lessons Learned On Why ChatGPT Became Oddly Obsessed With Gremlins And Goblins
Discover why ChatGPT became obsessed with gremlins and goblins, and learn vital lessons from this AI mystery
Forbes Innovation
The Human Element in AI-Based Emotion Recognition: When Machines Start to Read Our Faces
Learn how AI-based emotion recognition systems use facial analysis to understand human emotions and the importance of the human element in these systems
Medium · Deep Learning
ChatGPT vs Claude AI: Which AI Tool is Best for Your Business? — Complete Guide by Amigoways
Learn how to choose between ChatGPT and Claude AI for your business needs and understand their differences
Medium · ChatGPT

Chapters (6)

Intro
1:22 What a session is and why it matters for agent memory
2:00 [Demo] Memory loss vs memory fixed
2:48 The difference between events (full interaction logs) and state (quick-access
3:53 A live demo comparing an agent with and without short-term memory
5:05 Recap
Up next
5 Levels of AI Agents - From Simple LLM Calls to Multi-Agent Systems
Dave Ebbelaar (LLM Eng)
Watch →