SEAL: Suite for Evaluating API-use of LLMs

Woojeong Kim, Ashish Jagmohan, Aditya Vempaty

Abstract

Large language models (LLMs) have limitations in handling tasks that require real-time access to external APIs. While several benchmarks like ToolBench and APIGen have been developed to assess LLMs' API-use capabilities, they often suffer from issues such as lack of generalizability, limited multi-step reasoning coverage, and instability due to real-time API fluctuations. In this paper, we introduce SEAL, an end-to-end testbed designed to evaluate LLMs in real-world API usage. SEAL standardizes existing benchmarks, integrates an agent system for testing API retrieval and planning, and addresses the instability of real-time APIs by introducing a GPT-4-powered API simulator with caching for deterministic evaluations. Our testbed provides a comprehensive evaluation pipeline that covers API retrieval, API calls, and final responses, offering a reliable framework for structured performance comparison in diverse real-world scenarios. SEAL is publicly available, with ongoing updates for new benchmarks.

Introduction

While Large Language Models (LLMs) are increasingly deployed as "agents" that interact with the world via APIs—such as calculators, web searches, and database interfaces—evaluating this capability remains a significant challenge. Current benchmarks like ToolBench and APIGen suffer from several critical gaps that hinder reliable assessment. These include a lack of generalizability across different API pools, a bias toward simple single-step queries, and inherent instability caused by the fluctuating nature of live APIs. Furthermore, existing evaluations often focus narrowly on tool selection, neglecting the accuracy of parameters and the ultimate utility of the generated response.

Methodology

SEAL (Suite for Evaluating API-use of LLMs) is designed as a comprehensive end-to-end testbed to address these limitations. Its architecture is built upon three core pillars:

  1. Standardization & Sanitization: SEAL unifies five major existing benchmarks into a consistent format. This process involved "sanitizing" datasets like ToolBench by removing approximately 40% of queries that were unsolvable due to broken links or hallucinated functions.
  2. Agent-Based System: Utilizing a multi-agent framework (via AutoGen), SEAL separates the API-use process into distinct roles: an API Retriever to locate tools, an Orchestrator for planning, and an API Execution Manager to handle code generation and calls.
  3. Deterministic API Simulator: To eliminate the variability of live APIs, SEAL introduces a simulator powered by GPT-4. By generating consistent responses based on API documentation and caching them, SEAL ensures that every model is evaluated against an identical, stable environment.
The SEAL end-to-end agent system pipeline, illustrating the flow from user query to final response generation via API retrieval and execution.

Benchmarks

SEAL integrates and standardizes five prominent tool-use benchmarks to provide a diverse testing ground:

  • ToolBench: A large-scale set of real-world APIs from RapidAPI.
  • APIGen: Focused on high-quality, verifiable tool-call trajectories.
  • AnyTool & MetaTool: Benchmarks primarily targeting the tool selection and retrieval phases.
  • APIBench: A collection of single-step, single-tool queries.

Analysis and Results

Evaluations using gpt-4-turbo across the SEAL suite yielded several key insights into the current state of LLM tool-use:

  • The Generalization Gap: Models often exhibit a drop in performance when moved between benchmarks (e.g., from ToolBench to MetaTool), suggesting they may be memorizing specific API formats rather than learning general tool-use logic.
  • Scaling Difficulty: As the number of available APIs in the pool increases, retrieval performance degrades significantly. On the ToolBench subset, for example, retrieval accuracy drops as the pool grows from 10 to 500 APIs.
  • Parameter Accuracy: Correctly generating API parameters (e.g., coordinates, dates) remains a major bottleneck, with accuracy rates often falling between 34% and 44% on ToolBench.
Impact of API pool size on retrieval performance (MRR) across the Toolbench dataset.

Conclusion

SEAL provides a robust framework for evaluating the complex, multi-step reasoning required for real-world API interaction. By addressing the instability of live APIs and standardizing diverse benchmarks, it offers a more reliable path for developing agentic LLMs. Future work will focus on expanding the benchmark suite and refining evaluation metrics to further reduce stochasticity in performance assessment.

Summary updated

Abstract

Large language models (LLMs) have limitations in handling tasks that require real-time access to external APIs. While several benchmarks like ToolBench and APIGen have been developed to assess LLMs' API-use capabilities, they often suffer from issues such as lack of generalizability, limited multi-step reasoning coverage, and instability due to real-time API fluctuations. In this paper, we introduce SEAL, an end-to-end testbed designed to evaluate LLMs in real-world API usage. SEAL standardizes existing benchmarks, integrates an agent system for testing API retrieval and planning, and addresses the instability of real-time APIs by introducing a GPT-4-powered API simulator with caching for deterministic evaluations. Our testbed provides a comprehensive evaluation pipeline that covers API retrieval, API calls, and final responses, offering a reliable framework for structured performance comparison in diverse real-world scenarios. SEAL is publicly available, with ongoing updates for new benchmarks.
BibTeX
@inproceedings{kim2024seal,
  author = {Woojeong Kim and Ashish Jagmohan and Aditya Vempaty},
  title = {{SEAL: Suite for Evaluating API-use of LLMs}},
  booktitle = {OWA @ NeurIPS},
  year = {2024},
  url = {https://openreview.net/forum?id=DdySm1xJOu},
}
Figure