{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/travelplanner-a-benchmark-for-real-world","title":"TravelPlanner: A Benchmark for Real-World Planning with Language Agents","arxiv_id":"2402.01622","date":"2024-02-02","proceeding":null,"authors":["Jian Xie","Kai Zhang","Jiangjie Chen","Tinghui Zhu","Renze Lou","Yuandong Tian","Yanghua Xiao","Yu Su"],"abstract":"Planning has been part of the core pursuit for artificial intelligence since its conception, but earlier AI agents mostly focused on constrained settings because many of the cognitive substrates necessary for human-level planning have been lacking. Recently, language agents powered by large language models (LLMs) have shown interesting capabilities such as tool use and reasoning. Are these language agents capable of planning in more complex settings that are out of the reach of prior AI agents? To advance this investigation, we propose TravelPlanner, a new planning benchmark that focuses on travel planning, a common real-world planning scenario. It provides a rich sandbox environment, various tools for accessing nearly four million data records, and 1,225 meticulously curated planning intents and reference plans. Comprehensive evaluations show that the current language agents are not yet capable of handling such complex planning tasks-even GPT-4 only achieves a success rate of 0.6%. Language agents struggle to stay on task, use the right tools to collect information, or keep track of multiple constraints. However, we note that the mere possibility for language agents to tackle such a complex problem is in itself non-trivial progress. TravelPlanner provides a challenging yet meaningful testbed for future language agents.","url_abs":"https://arxiv.org/abs/2402.01622v4","url_pdf":"https://arxiv.org/pdf/2402.01622v4.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"travelplanner-a-benchmark-for-real-world","repo_url":"https://github.com/OSU-NLP-Group/TravelPlanner","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"travelplanner-a-benchmark-for-real-world","repo_url":"https://github.com/llv22/travelplanner_forward","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":null}],"tasks":[],"methods":[{"method_slug":"absolute-position-encodings","method_name":"Absolute Position Encodings"},{"method_slug":"adam","method_name":"Adam"},{"method_slug":"attention","method_name":"Attention"},{"method_slug":"bpe","method_name":"BPE"},{"method_slug":"dense-connections","method_name":"Dense Connections"},{"method_slug":"dropout","method_name":"Dropout"},{"method_slug":"gpt-4","method_name":"GPT-4"},{"method_slug":"label-smoothing","method_name":"Label Smoothing"},{"method_slug":"layer-normalization","method_name":"Layer Normalization"},{"method_slug":"linear-layer","method_name":"Linear Layer"},{"method_slug":"multi-head-attention","method_name":"Multi-Head Attention"},{"method_slug":"position-wise-feed-forward-layer","method_name":"Position-Wise Feed-Forward Layer"},{"method_slug":null,"method_name":null},{"method_slug":"residual-connection","method_name":"Residual Connection"},{"method_slug":"softmax","method_name":"Softmax"},{"method_slug":"transformer","method_name":"Transformer"},{"method_slug":null,"method_name":"Travel"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2402.01622","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2402.01622"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/llv22/travelplanner_forward","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/OSU-NLP-Group/TravelPlanner","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":12,"ran_draft_wrong":4,"ran_honours":1},"by_repo_kind":{"official":{"samples":13,"ran":13,"repositories":1},"listed":{"samples":4,"ran":4,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":4,"samples":[{"code_sha256_prefix":"3589cdef8c72142f","entry":"calc_cost_w_tokens","repo":"OSU-NLP-Group/TravelPlanner","repo_kind":"official","path":"postprocess/openai_request.py","file_url":"https://github.com/OSU-NLP-Group/TravelPlanner/blob/HEAD/postprocess/openai_request.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3589cdef8c72142f"}},{"code_sha256_prefix":"144615fb5218a49a","entry":"convert_bool_values","repo":"OSU-NLP-Group/TravelPlanner","repo_kind":"official","path":"evaluation/hard_constraint.py","file_url":"https://github.com/OSU-NLP-Group/TravelPlanner/blob/HEAD/evaluation/hard_constraint.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"144615fb5218a49a"}},{"code_sha256_prefix":"77c486c16345d89e","entry":"convert_reference_information","repo":"llv22/travelplanner_forward","repo_kind":"listed","path":"tools/planner/sole_planning.py","file_url":"https://github.com/llv22/travelplanner_forward/blob/HEAD/tools/planner/sole_planning.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"77c486c16345d89e"}},{"code_sha256_prefix":"2f9ab3378b37a898","entry":"count_consecutive_values","repo":"OSU-NLP-Group/TravelPlanner","repo_kind":"official","path":"evaluation/commonsense_constraint.py","file_url":"https://github.com/OSU-NLP-Group/TravelPlanner/blob/HEAD/evaluation/commonsense_constraint.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2f9ab3378b37a898"}},{"code_sha256_prefix":"acd03219e0d9155b","entry":"create_data_display","repo":"OSU-NLP-Group/TravelPlanner","repo_kind":"official","path":"utils/func.py","file_url":"https://github.com/OSU-NLP-Group/TravelPlanner/blob/HEAD/utils/func.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"acd03219e0d9155b"}},{"code_sha256_prefix":"a96fb9bafb5a310a","entry":"estimate_budget","repo":"OSU-NLP-Group/TravelPlanner","repo_kind":"official","path":"utils/budget_estimation.py","file_url":"https://github.com/OSU-NLP-Group/TravelPlanner/blob/HEAD/utils/budget_estimation.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a96fb9bafb5a310a"}},{"code_sha256_prefix":"6f3fd21fac52a0df","entry":"extract_before_parenthesis","repo":"OSU-NLP-Group/TravelPlanner","repo_kind":"official","path":"agents/greedy_search.py","file_url":"https://github.com/OSU-NLP-Group/TravelPlanner/blob/HEAD/agents/greedy_search.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6f3fd21fac52a0df"}},{"code_sha256_prefix":"274ece3906f9cef5","entry":"extract_from_to","repo":"OSU-NLP-Group/TravelPlanner","repo_kind":"official","path":"evaluation/hard_constraint.py","file_url":"https://github.com/OSU-NLP-Group/TravelPlanner/blob/HEAD/evaluation/hard_constraint.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"274ece3906f9cef5"}},{"code_sha256_prefix":"7877a8bad070567d","entry":"extract_numbers_from_filenames","repo":"llv22/travelplanner_forward","repo_kind":"listed","path":"tools/planner/sole_planning.py","file_url":"https://github.com/llv22/travelplanner_forward/blob/HEAD/tools/planner/sole_planning.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"7877a8bad070567d"}},{"code_sha256_prefix":"6f08d8cc8543ebda","entry":"extract_query_number","repo":"OSU-NLP-Group/TravelPlanner","repo_kind":"official","path":"utils/func.py","file_url":"https://github.com/OSU-NLP-Group/TravelPlanner/blob/HEAD/utils/func.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6f08d8cc8543ebda"}},{"code_sha256_prefix":"84d28fbaf38b0a59","entry":"format_step","repo":"OSU-NLP-Group/TravelPlanner","repo_kind":"official","path":"agents/tool_agents.py","file_url":"https://github.com/OSU-NLP-Group/TravelPlanner/blob/HEAD/agents/tool_agents.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"84d28fbaf38b0a59"}},{"code_sha256_prefix":"1a12abefb2af139e","entry":"get_city_list","repo":"OSU-NLP-Group/TravelPlanner","repo_kind":"official","path":"agents/greedy_search.py","file_url":"https://github.com/OSU-NLP-Group/TravelPlanner/blob/HEAD/agents/greedy_search.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1a12abefb2af139e"}},{"code_sha256_prefix":"cf6909a439ea97be","entry":"limited_execution_time","repo":"OSU-NLP-Group/TravelPlanner","repo_kind":"official","path":"postprocess/openai_request.py","file_url":"https://github.com/OSU-NLP-Group/TravelPlanner/blob/HEAD/postprocess/openai_request.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"cf6909a439ea97be"}},{"code_sha256_prefix":"959eef29433a0a23","entry":"load_line_json_data","repo":"llv22/travelplanner_forward","repo_kind":"listed","path":"tools/planner/sole_planning.py","file_url":"https://github.com/llv22/travelplanner_forward/blob/HEAD/tools/planner/sole_planning.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"959eef29433a0a23"}},{"code_sha256_prefix":"db2cf6f145458dbc","entry":"openai_unit_price","repo":"OSU-NLP-Group/TravelPlanner","repo_kind":"official","path":"postprocess/openai_request.py","file_url":"https://github.com/OSU-NLP-Group/TravelPlanner/blob/HEAD/postprocess/openai_request.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"db2cf6f145458dbc"}},{"code_sha256_prefix":"744db5623472fa82","entry":"parse_action","repo":"llv22/travelplanner_forward","repo_kind":"listed","path":"agents/tool_agents.py","file_url":"https://github.com/llv22/travelplanner_forward/blob/HEAD/agents/tool_agents.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"744db5623472fa82"}},{"code_sha256_prefix":"610e4862668ffe73","entry":"transportation_match","repo":"OSU-NLP-Group/TravelPlanner","repo_kind":"official","path":"evaluation/commonsense_constraint.py","file_url":"https://github.com/OSU-NLP-Group/TravelPlanner/blob/HEAD/evaluation/commonsense_constraint.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"610e4862668ffe73"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}