How rpsahu12/ai_trip_planner works
AI Trip Planner is a Streamlit and FastAPI travel-planning application. Users submit solo questions or collaborate through group rooms; the backend sends requests to a tool-using LangGraph agent, returns itinerary text, and can convert plans into map locations. The documented group workflow includes room creation, private preference submissions, consensus planning, and shared conversational refinement. The graph includes the major planning tools and model/configuration layer; some connections come from the README or SOURCE INDEX because those source files were not excerpted.
Main entry points: agentic_workflow.py Agent Workflow · main.py FastAPI Endpoints · app.py Streamlit Frontend · model_loader.py LLM Provider Loader
Components 20
User Experience
- Streamlit Frontend
app.py
Planning Backend
- FastAPI Endpoints
main.py - Group Rooms and Preferences
main.py
Agent and Models
- Agent Workflow
agent/agentic_workflow.py - Itinerary Map Conversion
agent/agentic_workflow.py - Travel Planning Prompt
prompt_library/prompt.py - LLM Provider Loader
utils/model_loader.py - Configuration Loader
utils/config_loader.py
Travel Capabilities
- Place Search Tools
tools/place_search_tool.py - Tavily Place Search
utils/place_info_search.py - Weather Tools
tools/weather_info_tool.py - Weather Service
utils/weather_info.py - Expense Calculator Tools
tools/expense_calculator_tool.py - Expense Calculator
utils/expense_calculator.py - Currency Conversion Tool
tools/currency_conversion_tool.py - Currency Converter
utils/currency_converter.py
Other components
- Traveler or Group
- LLM Provider
- Tavily Search
- Weather API
Connections 19
- Traveler or Group → Streamlit Frontend: uses
README.md - Streamlit Frontend → FastAPI Endpoints: submits requests
README.md - FastAPI Endpoints → Group Rooms and Preferences: manages preferences
main.py - FastAPI Endpoints → Agent Workflow: invokes agent
main.py - FastAPI Endpoints → Itinerary Map Conversion: converts plan
main.py - Agent Workflow → Travel Planning Prompt: loads prompt
agent/agentic_workflow.py - Agent Workflow → LLM Provider Loader: loads model
agent/agentic_workflow.py - LLM Provider Loader → Configuration Loader: loads configuration
utils/model_loader.py - Agent Workflow → LLM Provider: invokes model
- Agent Workflow → Place Search Tools: registers tools
agent/agentic_workflow.py - Agent Workflow → Weather Tools: registers tools
agent/agentic_workflow.py - Agent Workflow → Expense Calculator Tools: registers tools
agent/agentic_workflow.py - Agent Workflow → Currency Conversion Tool: registers tools
agent/agentic_workflow.py - Place Search Tools → Tavily Place Search: delegates searches
tools/place_search_tool.py - Tavily Place Search → Tavily Search: queries
utils/place_info_search.py - Weather Tools → Weather Service: calls forecast methods
tools/weather_info_tool.py - Weather Service → Weather API: requests weather
utils/weather_info.py - Expense Calculator Tools → Expense Calculator: calls calculations
tools/expense_calculator_tool.py - Currency Conversion Tool → Currency Converter: calls conversion
tools/currency_conversion_tool.py