This project is a multi-tool agent built using Google's Agent Development Kit (ADK). It demonstrates how to create an agent capable of handling multiple tools and interacting with users through a variety of interfaces.
- Multi-tool integration: Includes tools for weather and time queries.
- Agent Development Kit (ADK): Utilizes Google's ADK for agent creation and management.
- Extensible: Easily add more tools and capabilities.
multi_tool_agent/
├── __init__.py # Initializes the module
├── agent.py # Defines the agent and its tools
├── .env # Environment variables (e.g., API keys)
└── __pycache__/ # Compiled Python files
- Python 3.9+
- Google ADK
-
Clone the Repository
git clone https://github.com/brainox/multi_tool_agent.git cd multi_tool_agent -
Set Up a Virtual Environment
python -m venv .venv source .venv/bin/activate # On macOS/Linux .venv\Scripts\activate # On Windows
-
Install Dependencies
pip install google-adk
-
Configure Environment Variables Create a
.envfile in the project root and add the following:GOOGLE_GENAI_USE_VERTEXAI=FALSE GOOGLE_API_KEY=PASTE_YOUR_ACTUAL_API_KEY_HERE
Replace
PASTE_YOUR_ACTUAL_API_KEY_HEREwith your actual Google API key.
-
Start the Development UI
adk web
-
Access the UI Open the provided URL (e.g.,
http://localhost:8000) in your browser. -
Interact with the Agent Use the UI to send queries like:
- "What is the weather in New York?"
- "What is the time in Paris?"
To test the agent, you can run the following command:
adk runThis will execute the agent in the terminal, allowing you to interact with it directly.
For more details, refer to the ADK Quickstart Guide.
This project is licensed under the MIT License.