How vikramjitsinghdev/travel-planner works
This appears to be a Flask travel-planning application. Its main workflow extracts a traveler’s mood and constraints, researches candidate destinations, checks destination results, and assembles travel information. The sampled code supports the main orchestration, research workers, and external search, map, and image services; the README is empty. Several substantial modules are included as capabilities, but their connections are left unspecified where the excerpts do not show them.
Main entry points: main.py Trip planner · research_agent.py Destination research · travel_agent.py Travel details · tavily_service.py Web search
Components 21
Application interface
- Flask app
app.py - Browser interface
static/script.js
Planning workflow
- Trip planner
main.py - Mood extraction
ai/mood_agent.py - Mood vocabulary
mood/mood_keywords.py - Mood scoring
mood/mood_score.py
Destination research
- Destination research
ai/research_agent.py - Research worker 1
workers/worker_agent1.py - Research worker 2
workers/worker_agent2.py - Research worker 3
workers/worker_agent3.py - Result verification
ai/recheck_agent.py - Web search
services/tavily_service.py
Travel capabilities
- Travel details
ai/travel_agent.py - Maps and geocoding
services/map_service.py - Destination images
services/pexel_service.py - Budget planning
travel/budget.py - Destination search
search_destination.py - Random destination
random_destination.py - Trip data structure
structure.py - Application data
database.py
Other components
- Traveler
Connections 17
- Traveler → Flask app: submits request
- Flask app → Trip planner: uses planner
app.py - Trip planner → Mood extraction: extracts preferences
main.py - Mood extraction → Mood vocabulary: normalizes moods
ai/mood_agent.py - Mood extraction → Mood scoring: scores profile
ai/mood_agent.py - Trip planner → Destination research: finds destinations
main.py - Destination research → Research worker 1: delegates research
ai/research_agent.py - Destination research → Research worker 2: delegates research
ai/research_agent.py - Destination research → Research worker 3: delegates research
ai/research_agent.py - Research worker 1 → Web search: searches web
workers/worker_agent1.py - Research worker 2 → Web search: searches web
workers/worker_agent2.py - Research worker 3 → Web search: searches web
workers/worker_agent3.py - Trip planner → Result verification: verifies results
main.py - Trip planner → Travel details: builds travel details
main.py - Travel details → Web search: searches web
ai/travel_agent.py - Travel details → Maps and geocoding: requests maps
ai/travel_agent.py - Travel details → Destination images: requests images
ai/travel_agent.py