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, Zeyu Liu, Yiheng Xu, Hongjin Su, Dongchan Shin, Caiming Xiong, Tao Yu

TL;DR

OpenAgents is a new open-source platform designed to bridge the gap between theoretical language agent research and practical, real-world applications. It offers a user-friendly web interface and three specialized agents (Data, Plugins, and Web) that empower both non-expert users and developers to build, deploy, and evaluate innovative language agents in everyday scenarios.

What Problem Does This Paper Address?

The paper addresses a critical gap in the current landscape of language agent development: the disconnect between proof-of-concept research and real-world usability. While many frameworks exist for building language agents, they often focus on developer-centric console interfaces and simulated environments, neglecting the needs of general users and practical application-level design. This makes it difficult for non-experts to access and utilize these powerful tools, and for researchers to conduct meaningful evaluations in authentic, "in-the-wild" settings. The authors aim to democratize access to language agents and provide a foundation for their development and evaluation in real-world scenarios.

Methods

OpenAgents is built around a modular architecture comprising a User Interface and a Language Agent.

  • User Interface: A key focus is on creating a user-friendly web interface that simplifies interaction for general users. This includes robust backend operations, error handling, and data streaming for a smooth experience. For developers, the platform offers a seamless local deployment option.
  • Language Agent: This core component integrates:
  • Language Models: The system leverages LLMs for understanding and generating responses.
  • Tool Interface: Agents can access and utilize a variety of tools.
  • Environment: Agents operate within specific environments to perform tasks. The system employs a ReAct-style prompting method (Observation → Deliberation → Action) for agent decision-making and aims to produce easily parsable text for tool interaction.

The platform features three distinct agents:

  1. Data Agent: For data analysis using Python and SQL, with integrated tools like Kaggle Data Search, Data Profiling, and ECharts for visualization.
  2. Plugins Agent: Connects to over 200 daily API tools, enabling tasks like shopping, searching, and more. It includes an "Auto Selection" feature to automatically choose the most relevant plugin.
  3. Web Agent: Designed for autonomous web browsing, it uses a Chrome extension for direct browser control, allowing for real-time user monitoring and intervention.

Datasets

The paper does not explicitly mention specific datasets used for training the LLMs themselves, as it focuses on the platform and agent development. However, the Data Agent can process user-uploaded files (tables, images, etc.) and interact with the Kaggle API for dataset discovery. The Plugins Agent leverages a vast array of existing APIs. The Web Agent interacts with real-world websites. The paper implicitly uses interaction data collected from users of the OpenAgents platform for evaluation, as detailed in Section E.

Key Insights and Ideas

  • Democratizing Agent Access: The core motivation is to make powerful language agents accessible to everyone, not just developers, through an intuitive web interface.
  • "In-the-Wild" Evaluation: The platform is designed to facilitate real-world evaluations of agents, moving beyond controlled, simulated environments to address genuine user needs.
  • Robustness is Crucial: The paper highlights the importance of addressing practical implementation challenges like failure handling, in-time response, and token overflow for realistic user experiences.
  • User-Centric Design: Significant effort is placed on creating a user-friendly interface that adapts to different environments and provides rich media and interactive content.
  • Streaming for Responsiveness: Implementing real-time response streaming is crucial for mitigating latency and improving user experience, especially with long completions.
  • Automated Tool Selection: The "Auto Selection" feature for plugins significantly simplifies the user experience by removing the burden of manually choosing from a large set of tools.

Key Results

The paper presents OpenAgents as a functional platform with three working agents. While specific quantitative performance metrics are not the primary focus, the paper details the successful implementation of:

  • A web UI for general users.
  • Three distinct agents (Data, Plugins, Web) capable of performing complex tasks.
  • Integration of over 200 API tools.
  • A Chrome extension for the Web Agent enabling direct browser control.
  • Solutions to practical challenges like data mapping, strategic storage, and system robustness.

User interaction statistics (Section E) show:

  • An average of 5.6 turns per conversation.
  • An average of 1.95 tool uses per conversation.
  • The majority of token consumption (over 80%) is on the agent side, with an average conversation token length of 1,229.

Limitations and Future Work

Limitations:

  • Prompt Engineering Complexity: Crafting effective prompts for LLMs can be substantial, requiring careful instructions for backend logic, output aesthetics, and adversarial defense, which can strain token limits.
  • Uncontrollable Real-world Factors: Deployment in the real world introduces unpredictable factors (server crashes, user interventions, CAPTCHAs, website changes) that are difficult to model and require robust handling.
  • Trade-offs: The paper acknowledges the inherent trade-offs between system responsiveness and accuracy, and the impact on user experience.

Future Work:

  • Expansion of Agents and Tools: Integrating new agents, agent-related methods, models, and tools for researchers.
  • Human-in-the-Loop Evaluation: Leveraging the web UI for more realistic human-agent interaction and LLM evaluation.
  • Community Inspiration: Encouraging the use of the open-source codebase to inspire the development of more innovative applications.
  • Efficient Scaling of Plugins: Investigating more efficient methods for scaling plugin integration.
  • Realistic Modeling: Deeper exploration and proposition of more realistic modeling approaches for uncontrollable real-world scenarios.
  • Evaluation Metrics: Developing more nuanced evaluation metrics that capture the complexities of language agents in real-world contexts.

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 Zeyu 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