StableToolBench-MirrorAPI: Modeling Tool Environments as Mirrors of 7,000+ Real-World APIs

Zhicheng Guo, Sijie Cheng, Yuchen Niu, Hao Wang, Sicheng Zhou +2 more
3/26/2025
cs.CLcs.AI

No official code found. Best implementation: THUNLP-MT/StableToolBench (240 stars, Apache-2.0, last commit 2025-04-15).

Abstract

The rapid advancement of large language models (LLMs) has spurred significant interest in tool learning, where LLMs are augmented with external tools to tackle complex tasks. However, existing tool environments face challenges in balancing stability, scalability, and realness, particularly for benchmarking purposes. To address this problem, we propose MirrorAPI, a novel framework that trains specialized LLMs to accurately simulate real API responses, effectively acting as "mirrors" to tool environments. Using a comprehensive dataset of request-response pairs from 7,000+ APIs, we employ supervised fine-tuning and chain-of-thought reasoning to enhance simulation fidelity. MirrorAPI achieves superior accuracy and stability compared to state-of-the-art methods, as demonstrated by its performance on the newly constructed MirrorAPI-Bench and its integration into StableToolBench.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

A new tool learning benchmark aiming at well-balanced stability and reality, based on ToolBench.

24024Shell, PythonFeb 29, 20241 years agoApache-2.0
llmtool-learning

Similar Papers

Cite this paper

@article{guo2025stabletoolbenchmirrorapi,
  title  = {StableToolBench-MirrorAPI: Modeling Tool Environments as Mirrors of 7,000+ Real-World APIs},
  author = {Zhicheng Guo and Sijie Cheng and Yuchen Niu and Hao Wang and Sicheng Zhou and Wenbing Huang and Yang Liu},
  year   = {2025},
  eprint = {2503.20527},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.20527v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.20527.svg)](https://codeofpaper.com/paper/2503.20527)

Discussion