What are the development tools available in Google ADK (adk web, adk run, adk api_server, adk eval)?

#google-adk#cli#development#debugging#web-ui#tools

Answer

Google ADK Development Tools

Google ADK provides 5 CLI tools for building, testing, debugging, and deploying agents.


CLI Tools Overview

CommandPurposeUse When
text
adk create
Scaffold new agent projectStarting a new agent
text
adk run
Terminal-based agent interactionQuick testing
text
adk web
Visual development UIDevelopment & debugging
text
adk api_server
HTTP API for agentIntegration testing
text
adk eval
Run evaluationsQuality assurance

1.
text
adk create
- Scaffold Agent

bash
# Create code-based agent
adk create my_agent

# Create config-based agent (YAML)
adk create --type=config my_agent

Output structure:

text
my_agent/
ā”œā”€ā”€ __init__.py
ā”œā”€ā”€ agent.py        # agent definition
└── .env            # API keys

2.
text
adk run
- Terminal Interaction

ADK Run
ADK Run

bash
# Interactive terminal chat
adk run my_agent

# With specific environment
adk run my_agent --env .env.production

3.
text
adk web
- Visual Dev UI

ADK Web Chat
ADK Web Chat

bash
# Launch web UI on localhost:8000
adk web my_agent

# Custom port
adk web my_agent --port 3000

Web UI Features

Chat Interface:

ADK Web Chat
ADK Web Chat

Function Call Inspection:

ADK Web Function Call
ADK Web Function Call

Trace View:

ADK Web Trace
ADK Web Trace

Audio Streaming:

ADK Web Audio
ADK Web Audio


4.
text
adk api_server
- HTTP API

ADK API Server
ADK API Server

bash
# Start API server
adk api_server my_agent --port 8080
bash
# Test with curl
curl -X POST http://localhost:8080/run \
    -H "Content-Type: application/json" \
    -d '{"user_id": "user-1", "message": "What is RAG?"}'

5.
text
adk eval
- Run Evaluations

bash
# Run all tests
adk eval my_agent tests/

# Run specific test file
adk eval my_agent tests/weather.test.json

# Verbose output
adk eval my_agent tests/ --verbose

Development Workflow

Learn more at Getting Started and Quickstart.