AnyTool: Self-Reflective, Hierarchical Agents for Large-Scale API Calls
Yu Du, Fangyun Wei, Hongyang Zhang

TL;DR
AnyTool is a hierarchical, self-reflective language model agent that efficiently utilizes a large set of APIs to improve query resolution, demonstrating significant performance gains over existing methods.
Contribution
We present AnyTool, a novel hierarchical agent with self-reflection capabilities that leverages GPT-4's function calling to utilize extensive APIs without external training.
Findings
Outperforms strong baselines like ToolLLM by +35.4% on ToolBench
Introduces a revised evaluation protocol for more realistic assessment
Demonstrates effective use of 16,000+ APIs for query solving
Abstract
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. We also revisit the evaluation protocol introduced by previous works and identify a limitation in this protocol that leads to an artificially high pass rate. By revising the evaluation protocol to better reflect…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsService-Oriented Architecture and Web Services · Mobile Agent-Based Network Management · Multi-Agent Systems and Negotiation
MethodsAttention Is All You Need · Sparse Evolutionary Training · Residual Connection · Dropout · Layer Normalization · Dense Connections · Position-Wise Feed-Forward Layer · Label Smoothing · Softmax · Absolute Position Encodings
