OpenAgents: An Open Platform for Language Agents in the Wild

Tianbao Xie, Fan Zhou, Zhoujun Cheng, Peng Shi, Luoxuan Weng, Yitao Liu, Toh Jing Hua, Junning Zhao, Qian Liu, Che Liu, Leo Z. Liu, Yiheng Xu, Hongjin Su, Dongchan Shin, Caiming Xiong, Tao Yu · DOI

Introduction

Large language model (LLM) agents have demonstrated remarkable potential in planning and tool use. However, most existing frameworks, such as AutoGPT or LangChain, are primarily designed for developers, often requiring command-line expertise and operating within controlled, "lab-like" environments. OpenAgents is an open-source platform designed to bridge this gap, moving language agents from developer consoles to a user-friendly web interface suitable for non-experts. By providing specialized agents for data analysis, API-based plugins, and autonomous web browsing, OpenAgents offers a robust framework for real-world deployment and "in-the-wild" evaluation of human-AI interaction.

The OpenAgents Web UI provides a user-friendly interface for interacting with various specialized agents in real-world scenarios.

System Architecture and Methodology

OpenAgents addresses the limitations of closed-source commercial offerings by providing an extensible platform that prioritizes accessibility and application-level design. The architecture is divided into a clear separation between the User Interface and the Language Agent logic, facilitating both ease of use and research flexibility.

The OpenAgents system architecture illustrates the flow between the user interface (frontend/backend) and the language agent components (LLMs, tools, and environments).

The platform introduces a tripartite agent architecture hosted within a unified web-based UI:

  1. Data Agent: Specialized for data analysis using Python and SQL. It employs a "language model in the tool" approach, where tools assist in generating and executing code to reduce the cognitive load on the primary agent. It operates within a safe, isolated Kaggle-based Docker sandbox.
  2. Plugins Agent: Orchestrates over 200 daily API tools (e.g., Google Search, Wolfram Alpha). A key innovation is the Auto-Selection mechanism, which uses text embeddings to automatically select the appropriate tool for a user’s request, removing the need for manual plugin toggling.
  3. Web Agent: Designed for autonomous web browsing via a Chrome extension. This allows the agent to interact with live websites in real-time, navigating the complexities of the actual web rather than relying on static or mocked environments.

To ensure a smooth user experience, the platform utilizes DataModel for serializing diverse data types (tables, charts, files) into LLM-optimized formats and a streaming response parser based on push-down automata for real-time UI updates.

Key Insights from the "Wild"

Transitioning agents to real-world environments revealed several critical insights:

  • The "Prompting Tax": Making an agent production-ready requires massive system prompts for formatting, safety, and error handling, which significantly consumes the LLM's context window.
  • UX as a Performance Metric: Real-time streaming is essential for user trust and perceived intelligence. Users value seeing the agent's "thought process" as it works.
  • Real-World Friction: Unlike deterministic benchmarks, "in-the-wild" agents must contend with CAPTCHAs, advertisements, and API rate limits—factors that frequently cause "lab" agents to fail.

Results and Future Directions

OpenAgents successfully integrated over 200 diverse plugins, proving that auto-selection can manage large toolsets effectively. In qualitative comparisons with ten other frameworks, OpenAgents stands out as one of the few open-source platforms to simultaneously support a Web UI, human-in-the-loop feedback, and uncontrolled environments.

While the platform marks a significant step forward, challenges remain regarding token limits in complex tasks and the inherent stochasticity of LLMs. Future work will focus on expanding the agent roster, refining auto-selection logic for even larger toolsets, and analyzing human-agent interaction traces to develop more sophisticated evaluation metrics for AI agents operating in the real world.

Summary updated

BibTeX
@inproceedings{xie2024openagents,
  author = {Tianbao Xie and Fan Zhou and Zhoujun Cheng and Peng Shi and Luoxuan Weng and Yitao Liu and Toh Jing Hua and Junning Zhao and Qian Liu and Che Liu and Leo Z. Liu and Yiheng Xu and Hongjin Su and Dongchan Shin and Caiming Xiong and Tao Yu},
  title = {{OpenAgents: An Open Platform for Language Agents in the Wild}},
  booktitle = {COLM},
  year = {2024},
  url = {https://openreview.net/forum?id=sKATR2O1Y0},
}
Figure