[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-686572-105":59,"doc-detail-686572-en":130,"doc-similar-686572":158},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","restgpt-connecting-large-language-models-with-real-world-restful-apis","RestGPT: Connecting Large Language Models with Real-World RESTful APIs","","Tool-augmented large language models (LLMs) have advanced many tasks, yet existing approaches remain tied to specifically designed tools and struggle with complex real-world instructions. This paper investigates a more realistic setting by integrating LLMs with RESTful APIs following the widely adopted REST architectural style. It introduces RestGPT with a coarse-to-fine online planning mechanism, plus an API executor that formulates parameters and parses responses. RestBench evaluates two real-world scenarios with human-annotated gold solution paths. Experiments demonstrate strong robustness and strong performance in complex tasks.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/restgpt-connecting-large-language-models-with-real-world-restful-apis/686572/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/restgpt-connecting-large-language-models-with-real-world-restful-apis/686572.png","ImageObject",300,407,{"name":92,"@type":93},"A glass of water","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-30","2026-11-07",true,{"@type":102,"interactionType":103,"userInteractionCount":24},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What limitation of current API-augmented LLM methods is highlighted?","Question",{"text":112,"@type":113},"Existing methods are mainly limited to connecting with a small number of specially designed tools/APIs and struggle to fully satisfy real-world complex user instructions.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How does RestGPT address complex instruction execution with RESTful APIs?",{"text":117,"@type":113},"RestGPT uses a coarse-to-fine online planning mechanism to improve task decomposition and API selection, and includes an API executor to formulate parameters and parse API responses.",{"name":119,"@type":110,"acceptedAnswer":120},"What is RestBench used for?",{"text":121,"@type":113},"RestBench is a high-quality benchmark with two real-world scenarios and human-annotated instructions paired with gold solution paths to evaluate RestGPT’s performance.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},686572,1794057002,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":24,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":129,"read_time":144,"preview_page_count":81,"preview_urls":145},962090760832,"https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d","arXiv :2306 .06624v2 [ cs .CL] 27 Aug 2023  \nRestGPT: Connecting Large Language Models with Real-World RESTful APIs  \nYifan Song 1 , Weimin Xiong 1 , Dawei Zhu 1 , Wenhao Wu 1 , Han Qian2 , Mingbo Song2 Hailiang Huang2 , Cheng Li3 , Ke Wang3 , Rong Yao3 , Ye Tian3 , Sujian Li 1 ∗  \n1 School of Computer Science, Peking University  \n2 School of Electronics Engineering and Computer Science, Peking University  \n3Huawei Technologies  \n{yfsong, [lisujian}@pku.edu.cn](lisujian}@pku.edu.cn)  \n[https://restgpt.github.io](https://restgpt.github.io)  \nAbstract  \nTool-augmented large language models (LLMs) have achieved remarkable progress in tackling a broad range of tasks. However, existing methods are mainly restricted to specifically designed tools and fail to fulfill complex instructions, having great limitations when confronted with real-world scenarios. In this paper, we explore amore realistic scenario by connecting LLMs with RESTful APIs, which adhere to the widely adopted REST software architectural style for web service development.  \nTo address the practical challenges of tackling complex instructions, we propose RestGPT, which exploits the power of LLMs and conducts a coarse-to-fine online planning mechanism to enhance the abilities of task decomposition and API selection. RestGPT also contains an API executor tailored for calling RESTful APIs, which can meticulously formulate parameters and parse API responses. To fully evaluate the performance of RestGPT, we propose RestBench, a high-quality benchmark which consists of two real-world scenarios and human-annotated instructions with gold solution paths. Experiments show that RestGPT is able to achieve impressive results in complex tasks and has strong robustness, which pavesa new way towards AGI.  \n1 Introduction  \nLarge language models (LLMs), such as GPT-3 [1] and ChatGPT [2], have shown various emergent abilities, including in-context learning [1, 3], reasoning [4, 5], and step-by-step planning [6, 7] . In pursuit of advancing the capabilities of LLMs for practical applications, an ongoing research direction is investigating the incorporation of external tools/APIs to enhance the functionality of LLMs[8, 9, 10, 11] . This endeavor has yielded successful integration of diverse tools, including search engines and other foundational models, with LLMs[12, 13, 14] .  \nDespite significant progresses, we find that existing API-augmented LLMs are still in the experimental stage and have yet to fully meet the demands of real-world user instructions. As shown in Table 1, current methods are limited to connect with a small number of specially designed tools/APIs [11, 12, 15] . For example, Chameleon [12] designs a set of 15 tools, such as table verbalizer and image captioner. Additionally, the absence of a standardized API design specification obstructs thescalability of previous endeavors. Thus, the potential for connecting LLMs with a diverse range of real-world APIs, like RESTful APIs, remains under-explored and challenging. Furthermore, when dealing with a complex instruction in real scenario, it is necessary to decompose it into smaller subtasks and accomplish them by employing a mix of various APIs. As a result, it becomes essential for  \n* Corresponding author.  \nModel  API/Tool Use   Framework   \n\n| ReAct 3 |  | − | Specialized Online |  | Natural Lang. | ✓ | ✓ |\n| --- | --- | --- | --- | --- | --- | --- | --- |\n| Toolformer | 5 | − | Specialized | ✗ | - | ✗ | ✗ |\n| Visual ChatGPT | 22 | − | Specialized | ✗ | - | Human | ✓ |\n| ViperGPT | 11 | − | Python func. | Offline | Program | ✗ | ✓ |\n| HuggingGPT | 241 | + | HuggingFace | Offline | Natural Lang. | ✗ | ✓ |\n| API-Bank | 53 | − | Specialized | ✗ | - | Human | ✓ |\n| Chameleon | 15 | − | Specialized | Offline | Natural Lang. | ✗ | ✓ |\n| Gorilla | 1645† | + | JSON | ✗ | - | ✗ | ✗ |\n| GPT4Tools | 31 | − | Specialized | ✗ | - | Human | ✗ |\n| RestGPT (ours)  100+ |  | ++ | RESTful  Online |  | Coarse-to-Fine | ✓ | ✓ |\n\nNum. Exten","cbCaiinw49e1Ta4r","https://ap.wps.com/l/cbCaiinw49e1Ta4r","pdf",892474,25,"English","# Introduction\n## Motivation and limitations of existing API-augmented LLMs\n## RESTful API scenario and challenges\n## Proposed approach: RestGPT modules","[{\"question\":\"What limitation of current API-augmented LLM methods is highlighted?\",\"answer\":\"Existing methods are mainly limited to connecting with a small number of specially designed tools/APIs and struggle to fully satisfy real-world complex user instructions.\"},{\"question\":\"How does RestGPT address complex instruction execution with RESTful APIs?\",\"answer\":\"RestGPT uses a coarse-to-fine online planning mechanism to improve task decomposition and API selection, and includes an API executor to formulate parameters and parse API responses.\"},{\"question\":\"What is RestBench used for?\",\"answer\":\"RestBench is a high-quality benchmark with two real-world scenarios and human-annotated instructions paired with gold solution paths to evaluate RestGPT’s performance.\"}]","RestGPT: Connecting Large Language Models with Real-World RESTful APIs | PDF",63,[146,150,154],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/f71f8a11c04208ba031d9a7735dee65f.webp",983,1272,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/f7215a39121b79cf6131182e61e462b9.webp",982,1270,{"page_no":81,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/717dd0252d9c932ff9b050d54f11cd55.webp",981,1269,{"list":159,"token":66},[160,166,172,178,185,192,198,204,210,217],{"doc_id":161,"doc_title":162,"file_type":137,"home_preview_img_url":163,"slug":164,"view_count":24,"category_name":40,"create_tm":165},686575,"RestGPT - Connecting Large Language Models with Real-World Applications via RESTful APIs","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000538110/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112119&Signature=ijLilzN3ognr4Mu17u%2BEjovkphk%3D","restgpt-connecting-large-language-models-with-real-world-applications-via-restful-apis",1794057005,{"doc_id":167,"doc_title":168,"file_type":137,"home_preview_img_url":169,"slug":170,"view_count":81,"category_name":40,"create_tm":171},686580,"Live API-Bench - 2500+ Live APIs for Testing Multi-Step Tool Calling","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000538437/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112119&Signature=prTeLihzNARjziyOLqf%2FXzSmDCA%3D","live-api-bench-2500-live-apis-for-testing-multi-step-tool-calling",1794057054,{"doc_id":173,"doc_title":174,"file_type":137,"home_preview_img_url":175,"slug":176,"view_count":81,"category_name":40,"create_tm":177},698665,"LLM Evaluate - An Industry-Focused Evaluation Tool for Large Language Models","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010392363/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112119&Signature=A%2FgU15%2FfwCrSd0AWAIqO6eF9syA%3D","llm-evaluate-an-industry-focused-evaluation-tool-for-large-language-models",1794454353,{"doc_id":179,"doc_title":180,"file_type":137,"home_preview_img_url":181,"slug":182,"view_count":183,"category_name":40,"create_tm":184},83866,"DSWAM: A Dual-System World Action Foundation Model for Fine-Grained Robot Manipulation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809004229/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112119&Signature=O4O9cjHAu9UkJH4DWBpnCxss0VI%3D","dswam-a-dual-system-world-action-foundation-model-for-fine-grained-robot-manipulation",36,1784191077,{"doc_id":186,"doc_title":187,"file_type":137,"home_preview_img_url":188,"slug":189,"view_count":190,"category_name":40,"create_tm":191},81779,"AGI Maze as a Benchmark Framework for World Modeling Agents","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808481054/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112119&Signature=gDnZ1Ka1p8wimjoCkX3NEOXbSa4%3D","agi-maze-as-a-benchmark-framework-for-world-modeling-agents",27,1784176092,{"doc_id":193,"doc_title":194,"file_type":137,"home_preview_img_url":195,"slug":196,"view_count":41,"category_name":40,"create_tm":197},82457,"Evaluating and Mitigating Errors in LLM-Generated Web API Integrations","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808745155/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112119&Signature=lXk4rKVJvr14zK5fglfsjjd1Z88%3D","evaluating-and-mitigating-errors-in-llm-generated-web-api-integrations",1784180558,{"doc_id":199,"doc_title":200,"file_type":137,"home_preview_img_url":201,"slug":202,"view_count":81,"category_name":40,"create_tm":203},682273,"RESTful API Design for Geospatial Logistics Platforms Using TypeScript and Laravel","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999450331/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112119&Signature=gF%2BhQ3eZj6CuaK6j8SqauYsCi6c%3D","restful-api-design-for-geospatial-logistics-platforms-using-typescript-and-laravel",1793964650,{"doc_id":205,"doc_title":206,"file_type":137,"home_preview_img_url":207,"slug":208,"view_count":41,"category_name":40,"create_tm":209},119970,"RRAML - Reinforced Retrieval Augmented Machine Learning","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229835295392/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112119&Signature=eViOsP05%2FJe0A%2Fc1juIA5ft1Dao%3D","rraml-reinforced-retrieval-augmented-machine-learning",1785727317,{"doc_id":211,"doc_title":212,"file_type":137,"home_preview_img_url":213,"slug":214,"view_count":215,"category_name":40,"create_tm":216},496430,"A.S.E: A Repository-Level Benchmark for Evaluating Security in AI-Generated Code","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229929836739/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112119&Signature=I2udjW0OacJ2NifGpYWtbxLXScM%3D","ase-a-repository-level-benchmark-for-evaluating-security-in-ai-generated-code-496430",12,1790931903,{"doc_id":218,"doc_title":219,"file_type":137,"home_preview_img_url":220,"slug":221,"view_count":46,"category_name":40,"create_tm":222},201213,"FOLIO - Natural Language Reasoning with First-Order Logic","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229882046108/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112119&Signature=GiFeV6tsbyCfxZRaN08GlaS1qsQ%3D","folio-natural-language-reasoning-with-first-order-logic",1788527357]