-
parse_request -
flight_agent ∥ hotel_agent -
itinerary_agent -
write_up -
checkpoint (Postgres)
Calls an LLMExternal system / data
Why it’s short
Travel planners are the most common tutorial agent, so I’m not presenting this one as an AI result: it has no eval set. What it shows is the engineering around an agent that has to survive real use: requests that need clarifying, rate-limited free-tier models, dropped connections and restarts.
Decisions worth a look
- APIs don’t do what their names suggest. The flight-data API returns schedules, not prices, and web search doesn’t return hotel inventory. Prices are labelled as estimates rather than presented as quotes.
- Currency ambiguity handled explicitly. “2 lakhs” means BDT from Bangladesh and INR from India. The parser infers currency from the origin and records that as an assumption.
- Parallel where there’s no dependency. Flights and hotels don’t depend on each other, so running them concurrently roughly halves wall-clock time.
- Mock mode (
MOCK_TOOLS=true) with fixtures, so development doesn’t burn API quota.
What it would need to count as an AI result
A 10–15 case golden set (budget parsing, currency inference, follow-ups, missing destination) with pass/fail scoring, and cost per plan. Add this, or keep the page short as it is.