Interact with Agent Sandbox interpreter by ADK Agent
This guide documents the example setup with ADK agent that can interact with the Agent Sandbox.
The guide will guide you through the process of creating a simple ADK agent that is able to use agent sandbox as a tool.
Installation
-
Install the Agent-Sandbox controller and CRDs to a cluster. You can follow the instructions from the installation section from the Getting Started page.
-
Install the Agent Sandbox router
-
Move into this example’s folder:
cd examples/code-interpreter-agent-on-adk -
Create a Python virtual environment:
python3 -m venv .venv source .venv/bin/activate -
Install the dependencies:
pip install -r requirements.txt -
Set you API key to get access the Gemini model that is used in this example:
export GOOGLE_API_KEY="YOUR_API_KEY" -
Start ADK agent with the web UI:
adk web
Testing
-
Open agent’s page: http://127.0.0.1:8000.
-
Tell the agent to generate some code and execute it in the sandbox:

The agent should generate the code and execute it in the agent-sandbox.
Feedback
Was this page helpful?