Sample agents built with the Google Agent Development Kit (ADK) for a workshop on building LLM agents.
- Python 3.13+
- uv for dependency management
- A Google API key with access to Gemini models
-
Install dependencies:
uv sync
-
Add your API key to
.envin the project root:GOOGLE_API_KEY=your-api-key-here
Each agent lives in its own folder with an agent.py exposing a root_agent. From the project root, run:
# Interactive terminal chat with a specific agent
uv run adk run weather_agent
# Browser-based UI (http://localhost:8000) with a dropdown to pick any agent
uv run adk webweather_agent/— a single agent with a mockget_weathertool. Good starting example for tools + instructions.code_agent/— aSequentialAgentpipeline (CodeWriterAgent→CodeReviewerAgent→CodeRefactorerAgent) that writes, reviews, and refactors Python code.
weather_agent_starter.py— exercise skeleton for wiring up aRunner+InMemorySessionServicearoundweather_agentby hand (fill in theTODOs).weather_agent_completed.py— the completed version of the same script.
Run either directly with:
uv run python weather_agent_completed.py