How pruthvirajk2026/travel-planning-multi-agent-system works
This is a FastAPI travel-planning web app. A traveler submits destination, dates, party size, budget, and preferences through the browser; the API validates the request and invokes a LangGraph workflow. The workflow branches into destination research, itinerary, accommodation, and transport stages, then aggregates results and estimates a total using the selected mock flight and hotel. The README documents weather, places, maps, and news capabilities; the tools currently return mock data rather than live service results. Edges reflect the shown routes, calls, and graph wiring.
Main entry points: graph.py Supervisor · main.py FastAPI routes · index.html Planning form · models.py Request validation
Components 16
Web interface
- Planning form
static/index.html
API and validation
- FastAPI routes
app/main.py - Request validation
app/models.py
Planning workflow
- Plan invocation
app/graph.py - Supervisor
app/graph.py - Destination research
app/graph.py - Itinerary planning
app/graph.py - Accommodation planning
app/graph.py - Transport planning
app/graph.py - Response aggregation
app/graph.py
Mock travel tools
- Weather, places, maps, news
app/tools.py - Mock hotel search
app/tools.py - Mock flight search
app/tools.py - Mock transit directions
app/tools.py
Other components
- Traveler
- Readable trip plan
Connections 20
- Traveler → Planning form: enters trip details
README.md - Planning form → FastAPI routes: submits plan request
README.md - FastAPI routes → Request validation: validates payload
app/main.py - FastAPI routes → Plan invocation: calls generate_plan
app/main.py - Plan invocation → Supervisor: starts workflow
app/graph.py - Supervisor → Destination research: dispatches
app/graph.py - Supervisor → Itinerary planning: dispatches
app/graph.py - Supervisor → Accommodation planning: dispatches
app/graph.py - Supervisor → Transport planning: dispatches
app/graph.py - Destination research → Weather, places, maps, news: calls research tools
app/graph.py - Accommodation planning → Mock hotel search: searches hotels
app/graph.py - Transport planning → Mock flight search: searches flights
app/graph.py - Transport planning → Mock transit directions: gets directions
app/graph.py - Destination research → Response aggregation: contributes state
app/graph.py - Itinerary planning → Response aggregation: contributes state
app/graph.py - Accommodation planning → Response aggregation: contributes state
app/graph.py - Transport planning → Response aggregation: contributes state
app/graph.py - Response aggregation → Plan invocation: returns final plan
app/graph.py - Plan invocation → FastAPI routes: returns plan
app/main.py - FastAPI routes → Planning form: serves plan response
README.md