How to build context systems for AI agents
Key Takeaways
This video introduces the concept of context systems for AI agents, focusing on collaborative systems and memory management using databases and microservices, with links to the Agent Development Kit and Mem0 for persisting information.
Full Transcript
[music] Welcome back to Real Terms for AI with me, Aza, and Jason. And Jason, we've been talking a lot about how to design agents and how to build agents and agents and agents and agents. I want to talk about something different today. Do you have any ideas? >> I was thinking we should talk about systems for agents. >> Not sure that many agents is actually that different than talking about one agent, but sure. But you got to promise me you're not just going to lob a whole bunch of technical terms at us and that you're actually going to like use the board and draw a picture so that we can all follow along with what's going on in your head. Deal? >> Maybe. Well, remains to be seen. >> Okay, >> let's talk about system. So, to do this, I think we should go back to the pet shop agent that we first talked about, right? >> Okay. >> And let's go ahead and get this drawing going because I need to draw it out. So, we have our order agent here. >> Okay. And this is for our pet shop. So, say buy cat food or you maybe place an order for a new toy. >> Yeah. >> And if you also remember, we talked about memory >> that our agent has. >> And we talked about different kinds of memory. We had working memory for the current task or the current prop the agent was working with. We had short-term memory for some of the things that the agent had done recently. And then we had long-term memory, which we talked about as being used like across user sessions. Right. >> Exactly. >> Okay. Now, let's say we want to add another agent, a different type of agent. So, maybe we've taken the time and we have a customer service agent. >> Okay, that agent has memory. >> It has connectors for memory, but we need to get these memories for that agent also >> because this agent needs to know about my orders. >> Exactly. >> So, how do we get these two agents to share memory? So in the application development world, what we're almost talking about is just managing state over long periods of time and things that we know. And this is where we start to think about systems that are helping our agents out. >> Okay. So this memory system supports our agents. >> It does. >> And then each of our agents can connect to that and pull the information that they need for short-term or long-term memory. And we also may have agents adding to those memories. So for example, our service agent if it has a tool call failure, it may go through and add memories about the right thing that it should do in the future or correcting maybe a bad tool call that it had in the past. >> Okay, but this memory can't exist in like just a markdown file or an XML file or anything if we're going to share it across systems because each of these systems needs different memories to do their jobs. >> We could do that. That would probably be the very simple way. But coming back again to application development principles, we could use a database and we could store those memories in a database and we could even have different pieces of code which help us with things like harvesting the most important information from those memories or even you know creating different types of memories that we can share with our different agents. So each agent is responsible for using this memory system that we've created to get the types of memories it needs out of our data store, whatever format that is, >> when it needs to run them and then writing back memory information that other agents or it may need at a later date. >> Exactly. And we could even think about as we add agents. So let's maybe say that we want to create a inventory agent that this agent would also interact with this memory and maybe learn things like you know this one type of cat food is always out of stock and the supplier never delivers it on time. We can use this memory to improve other agents that we may choose to add to the system. So the inventory agent could write that fact in some way to the memory and then the service agent could use that when people call in complaining about not getting their cat food and the order agent could use that information to give a better predicted date of when the cat food might arrive. >> Yep. And it's all powered by a shared system that our agents are using. And in this case it's just our memory system for it. Kind of like a micros service. >> It's a bunch of microservices. Microservices all the way down. >> It is. And if you'd like to learn more about getting started with building your own systems, like a memory system for your agents, we've put some links down in the comments below that you can get to. >> And with that, this is Aza and Jason signing off for Real Terms for AI. >> Happy prompting. [music]
Original Description
Quickstart with Agent Development Kit → https://goo.gle/4q3lSKk
Make ADK application agent use Mem0 to persist information → https://goo.gle/3Muxl7e
This video introduces the concept of context systems for AI agents, shifting focus from individual agent design to collaborative systems. Learn how shared memory enables agents to benefit from each other's learnings and improve overall experience. We explore how managing these agent systems, including code, databases, and deployments, is similar to managing other applications.
Watch more Real Terms for AI → https://goo.gle/AIwordsExplained
Subscribe to Google Cloud Tech → https://goo.gle/GoogleCloudTech
#GoogleCloud #AIAgent #AI
Speakers: Aja Hammerly, Jason Davenport
Products Mentioned: AI Infrastructure, Gemini
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from Google Cloud Tech · Google Cloud Tech · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
I’m going for it #GoogleCloudCertified
Google Cloud Tech
I had to get #GoogleCloudCertified
Google Cloud Tech
Be better overall at what you do #GoogleCloudCertified
Google Cloud Tech
Cloud Monitoring on our radar #Analysis #Uptime
Google Cloud Tech
Introduction to Generative AI Studio
Google Cloud Tech
How to use Github Actions with Google's Workload Identity Federation
Google Cloud Tech
Introduction to Responsible AI
Google Cloud Tech
Networking updates and CDMC-certified architecture
Google Cloud Tech
Create and use a Cloud Storage bucket
Google Cloud Tech
How to digitize text from documents
Google Cloud Tech
Faster analytical queries with AlloyDB
Google Cloud Tech
Next ‘23 sessions and FaaS Wave
Google Cloud Tech
Introduction to Assured Open Source Software
Google Cloud Tech
BigQuery Cost Optimization: Storage
Google Cloud Tech
BigQuery Cost Optimization: Compute
Google Cloud Tech
BigQuery Cost Optimization: Select Queries
Google Cloud Tech
Remote Field Equipment Management with Manufacturing Data Engine
Google Cloud Tech
Supercharging your applications with Cloud SQL Enterprise Plus
Google Cloud Tech
Vector Support on our radar #GenAI
Google Cloud Tech
Architecting a blockchain startup with Google Cloud
Google Cloud Tech
Kubernetes and multitasking updates!
Google Cloud Tech
GKE: Using Kubernetes Events
Google Cloud Tech
How to configure firewall rules for Cloud Composer
Google Cloud Tech
Vertex AI Embeddings API + Matching Engine: Grounding LLMs made easy
Google Cloud Tech
Geospatial analytics on our radar #EarthEngine #BigQuery
Google Cloud Tech
Ensuring requests are set in Kubernetes
Google Cloud Tech
Cloud Next 2023, Google research program, and more!
Google Cloud Tech
How to migrate projects between organizations with Resource Manager
Google Cloud Tech
How to run #MySQL in Google Cloud
Google Cloud Tech
#GenerativeAI for enterprises and #Next2023
Google Cloud Tech
How Google Photos scales to store 4 trillion photos and videos
Google Cloud Tech
Google Cross-Cloud Interconnect (Demo 2)
Google Cloud Tech
GKE Cost Optimization Golden Signals: Introduction
Google Cloud Tech
GKE Cost Optimization Golden Signals: Workload Rightsizing
Google Cloud Tech
GKE Load Balancing: Overview
Google Cloud Tech
GKE Load Balancing: Best Practices
Google Cloud Tech
Disaster Recovery in GKE
Google Cloud Tech
How to configure IP masquerade agent in GKE Standard clusters
Google Cloud Tech
Enable and use GKE Control plane logs
Google Cloud Tech
Compliance in Australia with Assured Workloads
Google Cloud Tech
Creating budgets and budget alerts in Google Cloud #FinOps
Google Cloud Tech
Cloud SQL Enterprise Plus on our radar #mySQL
Google Cloud Tech
What's Next for Google Cloud?
Google Cloud Tech
How Loveholidays scaled with Contact Center AI
Google Cloud Tech
What is fleet team management in GKE?
Google Cloud Tech
Troubleshoot VPC Network Peering
Google Cloud Tech
Introduction to DocAI and Contact Center AI
Google Cloud Tech
Cloud Run Direct VPC egress explained
Google Cloud Tech
Database deployment options in GKE
Google Cloud Tech
Analyze cloud billing data with #BigQuery
Google Cloud Tech
Tips to becoming a world-class Prompt Engineer
Google Cloud Tech
Serverless is simple. Do I need CI/CD?
Google Cloud Tech
Accelerating model deployment with MLOps
Google Cloud Tech
How Hawaii's Department of Human Services scaled with CCAI
Google Cloud Tech
Pricing API on our #Radar
Google Cloud Tech
How Recommendations AI for Media can boost customer retention
Google Cloud Tech
Troubleshooting: Node Not Ready Status
Google Cloud Tech
One weekend until Cloud Next 2023!
Google Cloud Tech
#GoogleCloudNext starts tomorrow!
Google Cloud Tech
#GoogleCloudNext will be demand!
Google Cloud Tech
More on: Agent Foundations
View skill →Related Reads
📰
📰
📰
📰
Top AI Papers on Hugging Face - 2026-07-23
Dev.to · Y Hành Nhan
Future of AI: How Artificial Intelligence Will Transform Our Lives in the Next Decade
Medium · ChatGPT
BrainStem: A Neuro‑Symbolic System That Learns Language Through Structured Cognition
Dev.to AI
Building LORE: An AI Native Platform for Story Development | Week 1
Dev.to AI
🎓
Tutor Explanation
DeepCamp AI