Environment-free Synthetic Data Generation for API-Calling Agents
Training large language model (LLM) agents to call APIs effectively typically requires executing those APIs within fully implemented environments backed by live databases. This reliance on physical, stateful sandboxes imposes a major bottleneck on the scalability of training datasets. To bypass this limitation, researchers Seanie Lee, Sanjoy Chowdhury, Chao Jiang, Cheng-Yu Hsieh, Ting-Yao Hu, Alexander T Toshev, Oncel Tuzel, and Raviteja Vemulapalli developed an environment-free synthetic data generation framework, published on arXiv cs.AI. Designed for AI researchers and engineers building agentic workflows, this method leverages LLMs as on-the-fly digital world models, allowing the creation of high-quality trajectory datasets using nothing but raw API specifications.
The pipeline operates through three primary technical mechanisms. First, an LLM analyzes the API specifications to generate diverse, realistic target tasks. Second, a teacher agent attempts to solve these generated tasks iteratively, while a separate LLM simulator acts as the mock environment. This simulator generates coherent, stateful API responses conditioned on the task's context and the cumulative interaction history, effectively modeling state changes without any executable backend. Finally, an LLM judge evaluates and filters the completed trajectories to eliminate low-quality or logically inconsistent data before saving the dataset for fine-tuning.
The researchers validated this approach on the AppWorld and OfficeBench benchmarks, which feature complex information-retrieval and state-changing tasks. Fine-tuning models on the resulting synthetic trajectories yielded substantial performance improvements, proving that effective supervision for API-calling agents can be compiled without ever executing a single line of real API code. Going forward, this paradigm of LLM-based API simulation enables rapid, low-cost training of agents across diverse, custom, or proprietary API ecosystems where building sandboxes is impractical, potentially shifting the agent-training paradigm from environment-dependent testing to pure, specification-driven simulation. Note that this analysis is based on the published abstract of the paper.