Skip to content

Sasisundar2211/sample_multitool_agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌦️ Weather & Time Agent

Python Google ADK Status

A powerful, multi-tool AI agent built with Google's Agent Development Kit (ADK). This agent is capable of intelligently retrieving real-time weather information and current local time for supported cities, showcasing the power of LLM-driven tool use.

✨ Features

  • Query Weather: Get instant weather reports (currently simulated for demo purposes).
  • Check Time: Retrieve accurate local time for specific time zones.
  • Intelligent Routing: The agent automatically decides which tool to use based on your natural language query.
  • Powered by Gemini: Utilizes the gemini-2.0-flash model for high-speed, accurate reasoning.

πŸš€ Getting Started

Follow these instructions to get your agent up and running.

Prerequisites

  • Python 3.10+ installed on your machine.
  • A Google Cloud Project with Vertex AI enabled (or a valid API key).
  • Google ADK installed.

πŸ› οΈ Installation

  1. Clone the repository (if applicable) or navigate to your project directory:

    cd agent
  2. Install dependencies:

    pip install google-adk

    (Note: Ensure you have the ADK installed. If available on PyPI, use pip install google-adk. Otherwise, follow the specific ADK installation guide.)

  3. Configure Environment: Create a .env file in the multi_tool_agent directory with your credentials:

    GOOGLE_API_KEY=your_api_key_here
    # Or for OpenRouter/LiteLLM usage
    # OPENROUTER_API_KEY=your_openrouter_key

πŸƒβ€β™‚οΈ Usage

Command Line Interface:

Run the agent using the ADK CLI:

adk run multi_tool_agent

Web Interface:

To run the agent with a web interface, use the following command:

adk web --port 8000

Once the agent is running, you can interact with it via the command line or the web UI:

[user]: What's the weather in New York?
[agent]: The weather in New York is sunny with a temperature of 25 degrees Celsius.

[user]: What time is it there?
[agent]: The current time in New York is 2025-12-07 13:45:00 EST-0500.

🧠 Agent Architecture

The project is structured around the Agent class from Google ADK:

  • agent.py: Defines the weather_time_agent and its tools.
  • Tools:
    • get_weather(city): Simulates weather data retrieval.
    • get_current_time(city): Fetches current time using zoneinfo.

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.


Built using Google ADK

About

🌦️ Multi-Tool AI Agent (Weather & Time Bot) β€” A smart conversational agent powered by Google ADK & FastAPI. It delivers real-time weather 🌍 and global time ⏰ updates with natural, human-like responses. Designed for scalability, featuring an interactive Dev UI and multi-tool capabilities for real-world AI automation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages