Skip to main content
This quickstart will guide you through building a Google ADK agent with automatic memory, tool tracking, and query augmentation - all with just a few lines of code.

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 as my_first_agent.py and run:
You should see output like:

What Just Happened?

Behind the scenes, Ryumem:
  1. Tracked all tool executions - Every call to get_weather_report() and analyze_sentiment() was logged
  2. Stored user queries - All three questions were saved as episodes
  3. Augmented queries - Later queries got context from earlier similar ones
  4. 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:
This complete example is available in the repository as examples/simple_tool_tracking_demo.py.

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