ADK Basics & Setting Up
In Python, every time you work on a project, you create a virtual environment so it isn’t messy.
Root Agent — the entry point of all requests.
Agent properties
- Name — matches the folder name.
- Model — which LLM to use.
- Description — for other agents to know who to delegate to.
- Instruction — for the agent to know what to do.
- Tools — the capabilities the agent has.
Folder structure
agent_name/
├── __init__.py # Needs to know what agent it has access to
├── .env # Store all env variables; keep in the root agent
│ # (don't need it in multi-agent sub-folders)
├── .env.example
└── agent.py # Main code
The set-up process
python -m venv .venv— put the virtual env in.venvsource .venv/bin/activatepip install -r requirements.txt- Create the GCP project (if not done already)
- Set up API keys (paste into the
.envfile)
ADK CLI commands
adk api_server— run as an API serveradk create— create an agent folderadk deploy— deploy agent to the cloudadk eval— run tests against the agentadk run— run agents in your terminaladk web— spin up a website to chat with the agent
See next
- ADK-Tools — give the agent capabilities
- ADK-Sessions-and-State —
adk webhandles sessions, state, and runners automatically