How krishgarg344/autonomous-travel-planner works
Autonomous Travel Planner accepts trip details through a Streamlit chat UI or API, maintains per-session trip and conversation state, and uses a Groq tool-calling agent to gather flight, weather, and place information. When the trip has the required details, the agent sends its draft to Gemini for structured itinerary output. The graph preserves the documented tool capabilities; source excerpts show the API/UI and tool implementations, but not every agent dispatch detail.
Main entry points: agent.py Tool-calling agent · main.py Trip API · streamlitUI.py Chat UI · get_places.py Places search
Components 17
Trip orchestration
- Trip state
agent.py - Chat memory
agent.py - Tool-calling agent
agent.py - API configuration
config.py
Travel research
- Weather lookup
tools/get_weather.py - Places search
tools/get_places.py - Flight search
tools/get_flights.py
Trip data
- Trip request
schemas/request.py - Structured itinerary
schemas/itinerary.py
Other components
- Traveler
- Open-Meteo
- Google Places
- AeroDataBox
- Groq model
- Gemini model
Connections 19
- Traveler → Chat UI: enters trip
streamlitUI.py - Chat UI → Trip API: posts chat
streamlitUI.py - Trip API → Trip request: validates trip
main.py - Trip API → Tool-calling agent: calls handler
main.py - Trip API → Structured itinerary: formats response
main.py - Tool-calling agent → Trip state: updates state
agent.py - Tool-calling agent → Chat memory: trims history
agent.py - Tool-calling agent → Groq model: invokes agent
README.md - Tool-calling agent → Weather lookup: dispatches tool
README.md - Tool-calling agent → Places search: dispatches tool
README.md - Tool-calling agent → Flight search: dispatches tool
README.md - Tool-calling agent → Gemini model: formats draft
agent.py - Tool-calling agent → Structured itinerary: requests structure
agent.py - Flight search → API configuration: reads API key
tools/get_flights.py - Places search → API configuration: reads API key
tools/get_places.py - Weather lookup → Open-Meteo: fetches forecast
tools/get_weather.py - Places search → Google Places: searches places
tools/get_places.py - Flight search → AeroDataBox: searches flights
tools/get_flights.py - Chat UI → Structured itinerary: renders itinerary
streamlitUI.py