How sunnysavita10/ai_trip_planner works
This is an AI travel-planning and expense assistant exposed through a FastAPI query endpoint, with a documented Streamlit entry point. The principal workflow sends a question to a LangGraph agent, which can dispatch tools for destination research, weather, currency conversion, and expense calculations before returning a response. The prompt also specifies itinerary, lodging, and budget recommendations. Source evidence shows several tool-to-service calls; unsampled UI and some utility internals limit further connection detail.
Main entry points: agentic_workflow.py Tool dispatch · model_loader.py Model loader · place_info_search.py Place search services · main.py Query API
Components 21
User entry points
- Query API
main.py - Streamlit app
streamlit_app.py
Agent workflow
- Agent graph
agent/agentic_workflow.py - Travel prompt
prompt_library/prompt.py - Model loader
utils/model_loader.py - Model config
utils/config_loader.py - Tool dispatch
agent/agentic_workflow.py
Planning tools
- Place search
tools/place_search_tool.py - Weather tools
tools/weather_info_tool.py - Expense calculator
tools/expense_calculator_tool.py - Currency converter
tools/currency_conversion_tool.py
Service implementations
- Place search services
utils/place_info_search.py - Weather service
utils/weather_info.py - Expense calculations
utils/expense_calculator.py - Currency conversion
utils/currency_converter.py - Markdown exporter
utils/save_to_document.py
Other components
- Traveler
- LLM provider
- Google Places
- Tavily search
- OpenWeather API
Connections 19
- Traveler → Query API: submits query
main.py - Traveler → Streamlit app: opens app
README.md - Query API → Agent graph: builds and invokes
main.py - Agent graph → Model loader: loads model
agent/agentic_workflow.py - Model loader → Model config: loads settings
utils/model_loader.py - Model loader → LLM provider: creates provider
utils/model_loader.py - Agent graph → Travel prompt: uses prompt
agent/agentic_workflow.py - Agent graph → Tool dispatch: configures tools
agent/agentic_workflow.py - Tool dispatch → Place search: dispatches calls
agent/agentic_workflow.py - Tool dispatch → Weather tools: dispatches calls
agent/agentic_workflow.py - Tool dispatch → Expense calculator: dispatches calls
agent/agentic_workflow.py - Tool dispatch → Currency converter: dispatches calls
agent/agentic_workflow.py - Place search → Place search services: queries places
tools/place_search_tool.py - Weather tools → Weather service: requests forecasts
tools/weather_info_tool.py - Expense calculator → Expense calculations: calculates costs
tools/expense_calculator_tool.py - Currency converter → Currency conversion: converts amounts
tools/currency_conversion_tool.py - Place search services → Google Places: searches places
utils/place_info_search.py - Place search services → Tavily search: fallback search
utils/place_info_search.py - Weather service → OpenWeather API: requests weather
utils/weather_info.py