A demonstration project showcasing Google's Agent Development Kit (ADK) with practical examples of AI agents for weather information and code generation.
This project contains two main agent implementations:
- Weather Agent - An interactive weather assistant that provides mock weather information for various cities
- Code Agent - A multi-stage code generation pipeline that writes, reviews, and refactors Python code
- Interactive Weather Agent: Provides weather information for cities including London, Paris, Tokyo, Colombo, and Boralesgamuwa
- Code Generation Pipeline: Sequential agent workflow for code writing, reviewing, and refactoring
- Google ADK Integration: Built using Google's Agent Development Kit with Gemini models
- Mock Data: Uses mock weather data for demonstration purposes
/
├── weather_agent/
│ ├── __init__.py
│ └── agent.py # Weather agent implementation
├── code_agent/
│ ├── __init__.py
│ └── agent.py # Code generation agent pipeline
├── weather_agent_completed.py # Complete weather agent example
├── weather_agent_starter.py # Starter template for weather agent
├── pyproject.toml # Project configuration
├── requirements.txt # Dependencies
└── README.md # This file
- Python 3.13 or higher
- Google Cloud API access with appropriate credentials
- Google ADK library
-
Clone the repository:
git clone https://github.com/boldbat/ADK-Demo.git cd ADK-Demo -
Install dependencies:
pip install -r workshop_adk/requirements.txt
Or using uv:
cd workshop_adk uv sync
Set up your Google API credentials:
export GOOGLE_API_KEY="your-api-key-here"Run the interactive weather agent:
cd workshop_adk
python weather_agent_completed.pyExample interactions:
- "What's the weather in London?"
- "Weather in Colombo?"
- "How's the weather in Boralesgamuwa?"
The code agent can be imported and used programmatically:
from code_agent.agent import root_agent
# Use the agent for code generation tasks- Model: Gemini
- Tools:
get_weather(city: str)function - Supported Cities: London, Paris, Tokyo, Colombo, Boralesgamuwa
- Context: Optimized for Sri Lankan users
- Code Writer Agent: Generates Python code from specifications
- Code Reviewer Agent: Reviews code for correctness, readability, and best practices
- Code Refactorer Agent: Applies review feedback to improve the code
- Sequential Execution: Agents run in pipeline order
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.
- Built with Google's Agent Development Kit (ADK)
- Uses Google's Gemini language models
- Inspired by practical AI agent use cases