How to build context systems for AI agents

Google Cloud Tech · Beginner ·🧠 Large Language Models ·7mo ago

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 I’m going for it #GoogleCloudCertified
I’m going for it #GoogleCloudCertified
Google Cloud Tech
2 I had to get #GoogleCloudCertified
I had to get #GoogleCloudCertified
Google Cloud Tech
3 Be better overall at what you do #GoogleCloudCertified
Be better overall at what you do #GoogleCloudCertified
Google Cloud Tech
4 Cloud Monitoring on our radar #Analysis #Uptime
Cloud Monitoring on our radar #Analysis #Uptime
Google Cloud Tech
5 Introduction to Generative AI Studio
Introduction to Generative AI Studio
Google Cloud Tech
6 How to use Github Actions with Google's Workload Identity Federation
How to use Github Actions with Google's Workload Identity Federation
Google Cloud Tech
7 Introduction to Responsible AI
Introduction to Responsible AI
Google Cloud Tech
8 Networking updates and CDMC-certified architecture
Networking updates and CDMC-certified architecture
Google Cloud Tech
9 Create and use a Cloud Storage bucket
Create and use a Cloud Storage bucket
Google Cloud Tech
10 How to digitize text from documents
How to digitize text from documents
Google Cloud Tech
11 Faster analytical queries with AlloyDB
Faster analytical queries with AlloyDB
Google Cloud Tech
12 Next ‘23 sessions and FaaS Wave
Next ‘23 sessions and FaaS Wave
Google Cloud Tech
13 Introduction to Assured Open Source Software
Introduction to Assured Open Source Software
Google Cloud Tech
14 BigQuery Cost Optimization: Storage
BigQuery Cost Optimization: Storage
Google Cloud Tech
15 BigQuery Cost Optimization: Compute
BigQuery Cost Optimization: Compute
Google Cloud Tech
16 BigQuery Cost Optimization: Select Queries
BigQuery Cost Optimization: Select Queries
Google Cloud Tech
17 Remote Field Equipment Management with Manufacturing Data Engine
Remote Field Equipment Management with Manufacturing Data Engine
Google Cloud Tech
18 Supercharging your applications with Cloud SQL Enterprise Plus
Supercharging your applications with Cloud SQL Enterprise Plus
Google Cloud Tech
19 Vector Support on our radar #GenAI
Vector Support on our radar #GenAI
Google Cloud Tech
20 Architecting a blockchain startup with Google Cloud
Architecting a blockchain startup with Google Cloud
Google Cloud Tech
21 Kubernetes and multitasking updates!
Kubernetes and multitasking updates!
Google Cloud Tech
22 GKE: Using Kubernetes Events
GKE: Using Kubernetes Events
Google Cloud Tech
23 How to configure firewall rules for Cloud Composer
How to configure firewall rules for Cloud Composer
Google Cloud Tech
24 Vertex AI Embeddings API + Matching Engine: Grounding LLMs made easy
Vertex AI Embeddings API + Matching Engine: Grounding LLMs made easy
Google Cloud Tech
25 Geospatial analytics on our radar #EarthEngine #BigQuery
Geospatial analytics on our radar #EarthEngine #BigQuery
Google Cloud Tech
26 Ensuring requests are set in Kubernetes
Ensuring requests are set in Kubernetes
Google Cloud Tech
27 Cloud Next 2023, Google research program, and more!
Cloud Next 2023, Google research program, and more!
Google Cloud Tech
28 How to migrate projects between organizations with Resource Manager
How to migrate projects between organizations with Resource Manager
Google Cloud Tech
29 How to run #MySQL in Google Cloud
How to run #MySQL in Google Cloud
Google Cloud Tech
30 #GenerativeAI for enterprises and #Next2023
#GenerativeAI for enterprises and #Next2023
Google Cloud Tech
31 How Google Photos scales to store 4 trillion photos and videos
How Google Photos scales to store 4 trillion photos and videos
Google Cloud Tech
32 Google Cross-Cloud Interconnect (Demo 2)
Google Cross-Cloud Interconnect (Demo 2)
Google Cloud Tech
33 GKE Cost Optimization Golden Signals: Introduction
GKE Cost Optimization Golden Signals: Introduction
Google Cloud Tech
34 GKE Cost Optimization Golden Signals: Workload Rightsizing
GKE Cost Optimization Golden Signals: Workload Rightsizing
Google Cloud Tech
35 GKE Load Balancing: Overview
GKE Load Balancing: Overview
Google Cloud Tech
36 GKE Load Balancing: Best Practices
GKE Load Balancing: Best Practices
Google Cloud Tech
37 Disaster Recovery in GKE
Disaster Recovery in GKE
Google Cloud Tech
38 How to configure IP masquerade agent in GKE Standard clusters
How to configure IP masquerade agent in GKE Standard clusters
Google Cloud Tech
39 Enable and use GKE Control plane logs
Enable and use GKE Control plane logs
Google Cloud Tech
40 Compliance in Australia with Assured Workloads
Compliance in Australia with Assured Workloads
Google Cloud Tech
41 Creating budgets and budget alerts in Google Cloud #FinOps
Creating budgets and budget alerts in Google Cloud #FinOps
Google Cloud Tech
42 Cloud SQL Enterprise Plus on our radar #mySQL
Cloud SQL Enterprise Plus on our radar #mySQL
Google Cloud Tech
43 What's Next for Google Cloud?
What's Next for Google Cloud?
Google Cloud Tech
44 How Loveholidays scaled with Contact Center AI
How Loveholidays scaled with Contact Center AI
Google Cloud Tech
45 What is fleet team management in GKE?
What is fleet team management in GKE?
Google Cloud Tech
46 Troubleshoot VPC Network Peering
Troubleshoot VPC Network Peering
Google Cloud Tech
47 Introduction to DocAI and Contact Center AI
Introduction to DocAI and Contact Center AI
Google Cloud Tech
48 Cloud Run Direct VPC egress explained
Cloud Run Direct VPC egress explained
Google Cloud Tech
49 Database deployment options in GKE
Database deployment options in GKE
Google Cloud Tech
50 Analyze cloud billing data with #BigQuery
Analyze cloud billing data with #BigQuery
Google Cloud Tech
51 Tips to becoming a world-class Prompt Engineer
Tips to becoming a world-class Prompt Engineer
Google Cloud Tech
52 Serverless is simple. Do I need CI/CD?
Serverless is simple. Do I need CI/CD?
Google Cloud Tech
53 Accelerating model deployment with MLOps
Accelerating model deployment with MLOps
Google Cloud Tech
54 How Hawaii's Department of Human Services scaled with CCAI
How Hawaii's Department of Human Services scaled with CCAI
Google Cloud Tech
55 Pricing API on our #Radar
Pricing API on our #Radar
Google Cloud Tech
56 How Recommendations AI for Media can boost customer retention
How Recommendations AI for Media can boost customer retention
Google Cloud Tech
57 Troubleshooting: Node Not Ready Status
Troubleshooting: Node Not Ready Status
Google Cloud Tech
58 One weekend until Cloud Next 2023!
One weekend until Cloud Next 2023!
Google Cloud Tech
59 #GoogleCloudNext starts tomorrow!
#GoogleCloudNext starts tomorrow!
Google Cloud Tech
60 #GoogleCloudNext will be demand!
#GoogleCloudNext will be demand!
Google Cloud Tech

This video teaches how to build context systems for AI agents, focusing on collaborative systems and memory management. It introduces the concept of using databases and microservices to manage state and share information between agents.

Key Takeaways
  1. Identify the need for a context system in AI agent development
  2. Design a memory management system using databases and microservices
  3. Implement a pet shop agent and a customer service agent to demonstrate the concept
  4. Add an inventory agent to the system to showcase the benefits of shared memory
  5. Use the Agent Development Kit and Mem0 to persist information and manage state
  6. Consider using microservices architecture to build scalable and flexible systems
💡 Using a shared memory system and microservices architecture can enable AI agents to collaborate and share information effectively, leading to more efficient and scalable systems.

Related Reads

📰
Top AI Papers on Hugging Face - 2026-07-23
Discover the top AI papers on Hugging Face, featuring trends in world models, diffusion, and agents, to stay updated on the latest advancements in AI research
Dev.to · Y Hành Nhan
📰
Future of AI: How Artificial Intelligence Will Transform Our Lives in the Next Decade
Discover how AI will transform lives in the next decade, from work to communication, and why it matters for professionals and individuals alike
Medium · ChatGPT
📰
BrainStem: A Neuro‑Symbolic System That Learns Language Through Structured Cognition
Learn how BrainStem, a neuro-symbolic system, learns language through structured cognition, offering a new approach to AI language learning
Dev.to AI
📰
Building LORE: An AI Native Platform for Story Development | Week 1
Learn how to build an AI-native platform for story development, transforming ideas into production-ready story universes
Dev.to AI
Up next
5 Levels of AI Agents - From Simple LLM Calls to Multi-Agent Systems
Dave Ebbelaar (LLM Eng)
Watch →