RestGPT: Connecting Large Language Models with Real-World RESTful APIs
Yifan Song Affiliation: School of Computer Science, Peking University Weimin Xiong Affiliation: School of Computer Science, Peking University Dawei Zhu Affiliation: School of Computer Science, Peking University Wenhao Wu Affiliation: School of Computer Science, Peking University Han Qian Affiliation: School of Electronics Engineering and Computer Science, Peking University Mingbo Song Affiliation: School of Electronics Engineering and Computer Science, Peking University Hailiang Huang Affiliation: School of Electronics Engineering and Computer Science, Peking University Cheng Li Affiliation: Huawei Technologies{yfsong, Ke Wang Affiliation: Huawei Technologies{yfsong, Rong Yao Affiliation: Huawei Technologies{yfsong, Ye Tian Affiliation: Huawei Technologies{yfsong, Sujian Li11 1 Corresponding author. Affiliation: School of Computer Science, Peking University
Abstract
Tool-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 a more realistic scenario by connecting LLMs with RESTful APIs, which adhere to the widely adopted REST software architectural style for web service development. To 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 paves a n
原文 arXiv:2306.06624;中英对照 + 大白话阅读 https://aha.fim.ai/paper/2306.06624v2