How osu-nlp-group/travelplanner works
TravelPlanner is a benchmark and runtime for language agents that build constraint-aware travel itineraries. Its main workflow is query → information gathering and planning → structured-plan conversion → evaluation; it also supports a sole-planning mode and a greedy-search agent. The graph includes the documented postprocessing and evaluation stages, plus search, planning-environment, and constraint-checking internals. Some connections are based on README workflow descriptions or source-index references; unsampled implementations are not assumed to have unshown call relationships.
Main entry points: greedy_search.py Greedy search · commonsense_constraint.py Commonsense checks · hard_constraint.py Hard checks · tool_agents.py Tool agent
Components 19
Agent workflows
- Tool agent
agents/tool_agents.py - Greedy search
agents/greedy_search.py - Agent prompts
agents/prompts.py - Sole planning
tools/planner/sole_planning.py
Travel tools
- Planner agent
tools/planner/apis.py - Planning environment
tools/planner/env.py - Flight search
tools/flights/apis.py - Accommodation search
tools/accommodations/apis.py - Restaurant search
tools/restaurants/apis.py - Attraction search
tools/attractions/apis.py - Route distance
tools/googleDistanceMatrix/apis.py
Plan processing
- Plan parsing
postprocess/parsing.py - Element extraction
postprocess/element_extraction.py - Submission assembly
postprocess/combination.py
Evaluation
- Evaluation runner
evaluation/eval.py - Commonsense checks
evaluation/commonsense_constraint.py - Hard checks
evaluation/hard_constraint.py
Other components
- Plan requester
- Plan submission
Connections 30
- Plan requester → Tool agent: provides query
README.md - Tool agent → Agent prompts: uses instructions
agents/tool_agents.py - Tool agent → Greedy search: selects strategy
- Greedy search → Flight search: searches flights
agents/greedy_search.py - Greedy search → Accommodation search: searches lodging
agents/greedy_search.py - Greedy search → Restaurant search: searches meals
agents/greedy_search.py - Greedy search → Route distance: checks routes
agents/greedy_search.py - Greedy search → Attraction search: searches attractions
agents/greedy_search.py - Sole planning → Planner agent: runs planner
tools/planner/sole_planning.py - Planner agent → Agent prompts: uses prompts
tools/planner/apis.py - Planner agent → Planning environment: checks subplans
tools/planner/apis.py - Planning environment → Restaurant search: looks up meals
tools/planner/env.py - Planning environment → Route distance: checks route cost
tools/planner/env.py - Tool agent → Plan parsing: submits generated plan
README.md - Plan parsing → Element extraction: converts parsed plan
README.md - Element extraction → Submission assembly: assembles plan
README.md - Submission assembly → Plan submission: produces submission
README.md - Plan submission → Evaluation runner: evaluates plan
README.md - Evaluation runner → Commonsense checks: runs checks
evaluation/eval.py - Evaluation runner → Hard checks: runs checks
evaluation/eval.py - Commonsense checks → Flight search: validates travel
evaluation/commonsense_constraint.py - Commonsense checks → Accommodation search: validates lodging
evaluation/commonsense_constraint.py - Commonsense checks → Restaurant search: validates dining
evaluation/commonsense_constraint.py - Commonsense checks → Route distance: checks route options
evaluation/commonsense_constraint.py - Commonsense checks → Attraction search: validates visits
evaluation/commonsense_constraint.py - Hard checks → Flight search: checks cost data
evaluation/hard_constraint.py - Hard checks → Accommodation search: checks lodging data
evaluation/hard_constraint.py - Hard checks → Restaurant search: checks meal data
evaluation/hard_constraint.py - Hard checks → Route distance: checks travel cost
evaluation/hard_constraint.py - Hard checks → Attraction search: checks visit data
evaluation/hard_constraint.py