Google ADK Quickstart for NeMo Relay
This Quickstart Guide walks you through the process for running a Google ADK agent and saving its activity to a local file. For detailed setup, refer to the Installation Guide. NeMo Relay records the agent run, model calls, and tool calls. This example checks that the agent calls a tool and that Relay saves the events.
The file uses Agent Trajectory Observability Format (ATOF), Relay’s event format.
Prerequisites
You need:
- Python 3.11 or newer
uv- A Gemini API key
Quickstart Steps
To quickly get started with NeMo Relay, complete the following steps:
Install NeMo Relay
Create a project. Install NeMo Relay with its Google ADK extra.
If you already have a uv project, run only the uv add command in that directory.
Set up your API key
Set your Gemini API key in the current shell.
Unix shell
Windows PowerShell
This example uses gemini-3.5-flash
and the Gemini API. To use another supported model, change the agent’s model
argument and set that provider’s credentials. For provider setup, refer to the
Google ADK Integration Guide.
Configure the plugin
Create a file named plugins.toml in your project directory. This configuration
saves Relay events to logs/events.jsonl.
ATOF output can contain sensitive prompts, responses, tool arguments, and tool
results. Protect logs/events.jsonl, even with enable_full_payloads = false.
Run the agent
The example gives an agent one tool, emit_marker. The tool returns a fixed
message so you can check that it ran. The agent then returns a final answer.
Relay records the run and saves the events.
The tool and the check_* functions help verify this example. You don’t need
them in your own app. For an example with a weather tool, refer to the
Google ADK Integration Guide.
Save the following code as quickstart.py beside plugins.toml.
Run the example from your project directory.
Verify the output
The program checks the tool result, the final answer, and the saved events. It also checks that the request, tool call, and model call have matching start and end events. A successful run prints these messages in order:
The model can use different words around RELAY_QUICKSTART_RESPONSE_OK.
The check only requires that message to appear in the final answer.
Inspect the Recorded Activity
Print the details of one completed model call from the event file.
Use these fields to understand the call:
For example, a model call’s parent_uuid links it to the agent that made the call.
Next Steps
Now that you have a working setup, you should explore the following resources in greater detail: