What you’ll build
- A minimal ADK “root agent” that runs against an LLM.
- Local development setup (Python virtual environment).
- A scaffolded project containing the agent, package init, and .env.
- A quick run using the ADK runner and the ADK web UI for inspection.
Prerequisites
- Python 3.8 or newer
- If using the Google AI backend: a Google API key (create one in AI Studio)
- AI Studio (create an API key): https://aistudio.google.com/apikey
- ADK documentation: https://github.com/google/adk (or your internal ADK docs)
1) Create and activate a Python virtual environment
Mac / Linux:2) Install the ADK package
Install the ADK Python package with pip:3) Scaffold a new ADK project
Use the ADK CLI to scaffold a new agent project:- Model: gemini-2.5-flash
- Backend: Google AI (not Vertex AI)
4) Inspect the scaffolded files
Here’s a quick reference for the files the scaffold creates:
Examples and snippets below.
- init.py
- .env
Store real API keys securely — use environment variables, a secret manager, or another safe credential store. Avoid committing keys to source control.
- agent.py
5) Run the agent with the ADK runner
Run the agent using the ADK runtime so it can locate and execute the root agent:6) Web UI
ADK includes a web interface (adk web) to interact with your agent in a browser. Use it to inspect traces, events, state, artifacts, sessions, and evals — very helpful for debugging and iterating quickly. You can use both the CLI and the web UI concurrently during development.
Summary checklist
- Created and activated a Python virtual environment.
- Installed the google-adk package.
- Scaffolded a helpdesk ADK project and inspected its files (.env, init.py, agent.py).
- Configured the root_agent with goals, constraints, and a friendly instruction set.
- Ran the agent via
adk runto interact with the LLM. - Verified the web UI is available for interactive debugging and traces.