Skip to content

gitakhileshyadav/AI-Agent-Travel-Planner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Travel Planner with ADK

A sophisticated travel planning application built using the Agent Development Kit (ADK) framework. This project leverages AI agents to help users discover their dream holiday destinations, get inspiration, find nearby places, and stay updated with travel news and events.

Features

  • Travel Inspiration Agent: Helps users identify dream vacation destinations and suggests activities and events.
  • News Agent: Provides current travel news and event recommendations using web search.
  • Places Agent: Suggests specific locations, hotels, cafes, and points of interest based on user preferences.
  • Search Tools: Integrated DuckDuckGo search for web information and OpenStreetMap API for location-based queries.
  • AI-Powered: Uses LiteLLM with Ollama's Phi-3 model for intelligent responses.

Project Structure

travel-planner-with-adk/
├── main.py                 # Main entry point (currently placeholder)
├── pyproject.toml          # Project configuration
├── requirements.txt        # Python dependencies
├── README.md              # This file
├── test/
│   └── testing_model_json_capability.py  # Test for model capabilities
└── travel_planner/
    ├── agent.py            # Main travel agent definition
    ├── supporting_agent.py # Supporting agents (news, places, inspiration)
    ├── tools.py            # Custom tools for search and location
    └── tools/              # Additional tools directory (empty)

Installation

Prerequisites

  • Python 3.11 or higher
  • Ollama installed and running with the Phi-3 model

Setup

  1. Clone the repository:

    git clone <repository-url>
    cd travel-planner-with-adk
  2. Install dependencies:

    pip install -r requirements.txt
  3. Set up the Python environment (optional, if using virtualenv):

    python -m venv .venv
    # On Windows
    .venv\Scripts\activate
    # On macOS/Linux
    source .venv/bin/activate
    pip install -r requirements.txt
  4. Ensure Ollama is running with the required model:

    ollama pull yogeshisspl/phi3:latest
    ollama serve

Usage

The project defines AI agents for travel planning. The main components are:

  • Root Travel Agent: Orchestrates the travel planning process
  • Travel Inspiration Agent: Provides destination and activity suggestions
  • News Agent: Fetches travel news and events
  • Places Agent: Finds nearby locations and points of interest

To use the agents, you can integrate them into your application by importing from travel_planner.agent and travel_planner.supporting_agent.

Example usage (in Python):

from travel_planner.agent import root_agent

# The agent can be invoked with user queries
# Implementation depends on ADK framework usage

Dependencies

  • google-adk[extensions]>=1.27.5: Azure Developer Kit framework
  • duckduckgo-search>=8.1.1: Web search functionality
  • geopy>=2.4.1: Geocoding and location services
  • lancedb<0.30.0: Vector database for embeddings
  • litellm: Lightweight LLM interface

Tools

The project includes custom tools:

  • Duck Search Tool: Performs web searches using DuckDuckGo
  • Location Search Tool: Finds nearby places using OpenStreetMap's Overpass API (no API key required)

Testing

Run the model capability test:

python test/testing_model_json_capability.py

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

Disclaimer

This project uses free APIs (DuckDuckGo, OpenStreetMap) and may have limitations on usage. Ensure compliance with their terms of service.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages