2024

AnyTool: Self-Reflective, Hierarchical Agents for Large-Scale API Calls

Du, Yu, Wei, Fangyun, Zhang, Hongyang

Understand

We introduce AnyTool, a large language model agent designed to revolutionize the utilization of a vast array of tools in addressing user queries.

  • We utilize over 16,000 APIs from Rapid API, operating under the assumption that a subset of these APIs could potentially resolve the queries.
  • AnyTool primarily incorporates three elements: an API retriever with a hierarchical structure, a solver aimed at resolving user queries using a selected set of API candidates, and a self-reflection mechanism, which re-activates AnyTool if the initial solution proves impracticable.
  • AnyTool is powered by the function calling feature of GPT-4, eliminating the need for training external modules.

Reading the bibliography…