Prerequisites
1
Set Up Ryumem Server
First, you need a running Ryumem server. See Setup Guide for Docker Compose or local installation.Quick start with Docker:
2
Get Your API Key
Register to get your Ryumem API key:Save the API key from the response (starts with
ryu_).3
Install Dependencies for Google ADK
4
Set Environment Variables
Create a
.env file in your project:Building Your First Agent With Google ADK
Let’s build a weather assistant that remembers conversations and automatically tracks what it does.1. Create the Agent Tools
First, define some simple tools for our agent:2. Create the Agent with Memory
Now create your agent and add memory with ONE line:The agent now has 3 additional memory tools that it can use automatically:
search_memory(), save_memory(), and get_entity_context().3. Enable Query Tracking & Augmentation
Wrap your runner to automatically track queries and augment them with history:4. Run Your Agent
Save the code asmy_first_agent.py and run:
What Just Happened?
Behind the scenes, Ryumem:- Tracked all tool executions - Every call to
get_weather_report()andanalyze_sentiment()was logged - Stored user queries - All three questions were saved as episodes
- Augmented queries - Later queries got context from earlier similar ones
- Linked everything hierarchically - Queries are linked to their tool executions
What’s Next?
Full Example Code
See the complete annotated example
Google ADK Integration
Learn all the integration features
Core Concepts
Understand how Ryumem works
Query Augmentation
Deep dive into query augmentation
Full Code
Here’s the complete working example:Visualizing Results in Dashboard
All the queries, tool executions, and memories from your agent are automatically visible in the Ryumem dashboard:- Chat & Query: Search and explore the knowledge graph
- Episodes: View all stored memories and conversations
- Tool Analytics: See tool execution statistics and patterns
- Queries: Track query history and augmentation
Dashboard Guide
Learn how to navigate and use all dashboard features