Introduction
The rapid advancement of Large Language Model (LLM) agents has led to a proliferation of specialized tools and frameworks. However, these agents often exist in "ecosystem isolation," restricted to specific codebases or single-device environments. Current multi-agent frameworks typically require agents to be predefined within a unified system, hindering the integration of diverse, third-party agents. To address this, we present the Internet of Agents (IoA), a framework designed to facilitate collaboration among heterogeneous agents across distributed environments, mimicking the decentralized and protocol-based nature of the human Internet.
System Architecture
IoA moves away from rigid, hard-coded communication pipelines toward a flexible, "instant-messaging" style architecture. The framework is organized into three primary layers: the Interaction Layer, the Data Layer, and the Foundation Layer, distributed across a Client-Server model.
The Server acts as a central hub for agent registration, discovery, and message routing. It maintains an Agent Registry and manages session states. The Client side provides lightweight wrappers that allow any agent—whether a custom implementation or a third-party service like Open Interpreter—to join the network. This architecture enables agents on different physical devices or servers to communicate via standard protocols like WebSockets.
Autonomous Collaboration and Flow Control
A core innovation of IoA is its approach to dynamic team formation. Agents are equipped with tools to search for collaborators (search_client) and initiate group chats (launch_group_chat). To manage complex tasks without overwhelming the communication channel, IoA employs Autonomous Nested Team Formation. When an agent is assigned a sub-task, it can autonomously "spawn" a sub-group of specialists, creating a hierarchical tree structure that localizes discussion and reduces noise.
To ensure orderly interactions, the framework utilizes a Finite State Machine (FSM) to control conversation flow. This manages transitions between states such as Discussion, Task Assignment (synchronous or asynchronous), and Pause & Trigger, where a parent agent waits for a sub-team to complete its work.
Experimental Evaluation
The IoA framework was evaluated across four diverse benchmarks to test its versatility and performance:
- GAIA Benchmark: Testing real-world tool use. IoA achieved a leading score of 40.00, outperforming established frameworks like AutoGen (39.39), particularly on complex "Level 3" tasks.
- Open-Ended Instruction Benchmark: On a new dataset of 153 complex tasks, IoA demonstrated superior generative capabilities. By combining specialized agents (e.g., AutoGPT and Open Interpreter), it achieved a 76.5% win rate over standalone agents.
- RoCoBench: In embodied AI tasks requiring multi-robot coordination, IoA achieved perfect success rates in 4 out of 5 scenarios, surpassing specialized robotics frameworks.
- RAG Benchmarks: IoA effectively synthesized information from multiple heterogeneous evidence pools, matching or exceeding GPT-4's performance while using GPT-3.5 as a backbone.
Discussion and Future Work
Our findings highlight the power of heterogeneity; specialized agents working together often outperform general-purpose models. However, the "chattiness" of LLMs introduces a "repetition tax," where redundant communication accounts for nearly 50% of token costs. While deduplication strategies help, reducing latency and API costs remains a priority. Future research will focus on refining communication protocols to be more token-efficient and enhancing security measures against malicious agents in open networks.
Summary updated