TripStar  by 1sdv

AI travel agent for personalized trip planning

Created 1 month ago
1,284 stars

Top 30.7% on SourcePulse

GitHubView on GitHub
Project Summary

TripStar addresses the common challenges of travel planning: information overload and decision fatigue. It's an AI-powered travel agent application built on the HelloAgents framework, designed for users seeking efficient and personalized itinerary generation. By leveraging a multi-agent system and large language models, TripStar aims to act as an experienced travel butler, automating the search for travel information, weather, accommodation, and optimal routes, thereby significantly reducing planning time and effort.

How It Works

TripStar employs a multi-agent collaborative architecture, where specialized agents (e.g., Itinerary Planner, Weather Forecaster, Hotel Recommender) work together via defined workflows to fulfill complex travel planning requests. This approach breaks down the planning process into manageable, concurrent tasks. A key innovation is its asynchronous polling system for backend tasks, which prevents gateway timeouts common with long-running LLM generations. The system dynamically renders user interfaces and visualizations, including interactive maps and knowledge graphs, directly from structured JSON data, offering a responsive and data-driven user experience.

Quick Start & Requirements

  • Primary Install/Run: Backend: pip install -r requirements.txt and uvicorn app.api.main:app --host 0.0.0.0 --port 8000. Frontend: npm install and npm run dev.
  • Prerequisites: Python 3.10+, Node.js 18+. Requires API keys for a Large Language Model (LLM) compatible with OpenAI format (e.g., Doubao, Alibaba Cloud Baishan), Amap (Gaode Maps) Web Service and JS API, and Unsplash.
  • Setup: Requires careful configuration of multiple API keys in .env files for both backend and frontend. Specific JS API security key injection is needed in index.html.
  • Links: Amap API documentation is referenced.

Highlighted Details

  • Multi-language Support: Integrated Vue I18n for seamless interface and AI Q&A translation.
  • Interactive Map: Utilizes Amap JS API 2.0 for dynamic route visualization and custom map styling.
  • Budget Panel: Provides a detailed financial overview of estimated costs for tickets, dining, accommodation, and transport.
  • Multi-Agent Workflow: Agents collaborate using a React-like pattern for task decomposition and execution.
  • Knowledge Graph Visualization: Displays travel data (city, days, nodes, budget) as a relationship graph using ECharts.
  • Immersive AI Q&A: Offers a context-aware AI assistant for detailed trip inquiries.
  • UI Design: Features a "Dark Luxury Glassmorphism" aesthetic.

Maintenance & Community

The project acknowledges contributions and feedback from the "linuxdo community" for iterative development. No specific links to community channels, active maintainers, or sponsorship details are provided in the README.

Licensing & Compatibility

The provided README does not specify a software license. This absence makes it impossible to determine compatibility for commercial use, closed-source linking, or other adoption scenarios without further clarification.

Limitations & Caveats

Currently, TripStar exclusively supports domestic travel planning within China. Future development plans include integrating Google Maps for broader geographical coverage, incorporating Xiaohongshu (Little Red Book) for enhanced point-of-interest recommendations, and adding functionality for importing and exporting generated travel plans.

Health Check
Last Commit

2 days ago

Responsiveness

Inactive

Pull Requests (30d)
6
Issues (30d)
6
Star History
1,105 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.