-
Notifications
You must be signed in to change notification settings - Fork 3
AIP.IO‐v0.0.1‐EN
ScienceOne-AI edited this page May 30, 2025
·
2 revisions

The Agent Interaction Protocol (AIP) is a distributed agent interaction protocol designed for multi-agent collaboration. AIP supports both agent-to-agent connectivity and agent-to-tool invocation. In addition to point-to-point connections, all agents and tools can be mounted as nodes on a shared gateway to form an interconnected network.
- AIP supports both centralized proxy and peer-to-peer communication.
- AIP uses gRPC as the underlying communication protocol, enabling faster serialization/deserialization through binary data transmission.
- Agents communicate via bidirectional asynchronous streams, supporting full-duplex real-time interaction.

AIP adopts a layered design:
- Module Layer: Implements business logic distribution and coordination in the form of nodes or gateways. - Session Layer: Manages the lifecycle of each communication session between nodes, using unique session IDs and asynchronous task coordination to ensure real-time message processing and resource safety.
- Transport Layer: Handles message dispatching and reception between the Session Layer and gRPC interfaces.

AIP supports two communication modes:
- Request-Response: Used for agent-to-tool interactions.
- Bidirectional Asynchronous Streaming: Used for real-time full-duplex agent-to-agent communication. The session initiator is responsible for sending session termination requests.