Abstract
Autonomous agents that address day-to-day digital tasks (e.g., ordering groceries for a household), must not only operate multiple apps (e.g., notes, messaging, shopping app) via APIs, but also generate rich code with complex control flow in an iterative manner based on their interaction with the environment. However, existing benchmarks for tool use are inadequate, as they only cover tasks that require a simple sequence of API calls.
To remedy this gap, we built AppWorld Engine, a high-quality execution environment (60K lines of code) of 9 day-to-day apps operable via 457 APIs and populated with realistic digital activities simulating the lives of ~100 fictitious users. We then created AppWorld Benchmark (40K lines of code), a suite of 750 natural, diverse, and challenging autonomous agent tasks requiring rich and interactive code generation. It supports robust programmatic evaluation with state-based unit tests, allowing for different ways of completing a task while also checking for unexpected changes, i.e., collateral damage. The state-of-the-art LLM, GPT-4o, solves only ~49% of our 'normal' tasks and ~30% of 'challenge' tasks, while other models solve at least 16% fewer. This highlights the benchmark's difficulty and AppWorld's potential to push the frontiers of interactive coding agents.
Introduction: Beyond Simple API Calls
While Large Language Models (LLMs) have become remarkably good at following instructions and writing code snippets, their ability to act as "autonomous agents"—performing complex daily tasks like managing a household's groceries or organizing a workout—remains limited.
Existing benchmarks for "tool-use" are often too simplistic, typically requiring a linear sequence of one to four API calls with minimal logic. In reality, a task like "Play a Spotify playlist long enough for today's workout" requires an agent to log into a notes app, parse a free-form workout plan, determine the current day, calculate the required duration, and iterate through playlists to find a match. This requires rich code (loops, conditionals, data parsing) and iterative interaction with a stateful environment.
The AppWorld Framework
To address these challenges, we developed two core components: the AppWorld Engine and the AppWorld Benchmark.
AppWorld Engine
The Engine is a 60,000-line execution environment simulating nine everyday apps—including Amazon, Spotify, Venmo, Gmail, and SimpleNote—via 457 APIs. It is populated with realistic data for approximately 100 fictitious users, featuring 101 database tables and 370,000 rows of history to provide a rich, stateful context for agent actions.
AppWorld Benchmark
The Benchmark consists of 750 natural tasks categorized into "Normal" and "Challenge" sets. The Challenge set is particularly rigorous, requiring agents to use APIs they have not encountered in their training prompts, testing their ability to generalize from documentation.
Robust State-Based Evaluation
A novel aspect of AppWorld is its State-based Programmatic Evaluation. Rather than matching text output to a reference, AppWorld executes "unit tests" against the underlying database. This approach verifies goal completion (e.g., "Is the correct song playing?") while monitoring for "collateral damage"—unintended changes to the environment, such as accidentally deleting emails while searching for a receipt.
Key Insights
- Rich Code as a Bottleneck: The primary difficulty for agents is not just identifying the correct API, but writing the "glue code"—loops, conditionals, and data transformations—needed to connect them effectively.
- Non-Linear Interaction: Agents must frequently "read" information from the environment to determine subsequent actions, making one-shot planning impossible for complex tasks.
- Contrast Sets for Reasoning: The benchmark employs "contrast sets"—variations of the same task (e.g., changing the workout day)—to ensure agents are reasoning rather than relying on luck.
Experimental Results
We evaluated several state-of-the-art models, including GPT-4o, GPT-4-Turbo, Llama 3 (70B), and DeepSeek-Coder.
- GPT-4o Performance: Using a "ReAct" (Reason + Act) strategy, GPT-4o led the field but only solved 48.8% of "Normal" tasks and 30.2% of "Challenge" tasks.
- Open Model Gap: Llama 3 (70B) struggled significantly, solving only 20.8% of Normal tasks.
- Reasoning vs. Retrieval: Providing models with the exact "Oracle" APIs only improved scores by 5-10%, confirming that the bottleneck is complex reasoning and coding rather than API discovery.
Conclusion
AppWorld reveals that even the most advanced LLMs struggle with tasks requiring rich code generation and iterative environment interaction. By providing a controllable, high-fidelity world of apps and people, AppWorld serves as a critical benchmark for pushing the frontiers of autonomous coding agents toward reliable real-world utility.
Summary updated