Internet-Draft | agent-gw | April 2025 |
Muscariello, et al. | Expires 6 October 2025 | [Page] |
This document specifies the Agent Gateway Protocol (AGP), a protocol designed to support real-time interactive AI applications at scale. AGP extends gRPC with publish-subscribe capabilities to enable efficient many-to-many communication patterns between AI agents. The protocol provides mechanisms for connection management, stream multiplexing, and flow control while maintaining compatibility with existing gRPC deployments.¶
This note is to be removed before publishing as an RFC.¶
The latest revision of this draft can be found at https://spec.agp.agntcy.org. Status information for this document may be found at https://datatracker.ietf.org/doc/draft-agntcy-agp/.¶
Discussion of this document takes place on the WG Working Group mailing list (mailto:discussion@agntcy.org).¶
Source for this draft and an issue tracker can be found at https://github.com/agntcy/agp.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 6 October 2025.¶
Copyright (c) 2025 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document.¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.¶
As AI systems become more sophisticated and interconnected, there is a growing need for protocols that can support real-time interactive applications at scale. The Agent Gateway Protocol (AGP) addresses this need by:¶
+-------------------+ | Application | +-------------------+ | AGP Services | +-------------------+ | Pub/Sub | +-------------------+ | gRPC | +-------------------+ | HTTP/2 | +-------------------+¶
Gateway Nodes: Handle routing and message distribution¶
Topics: Named channels for pub/sub communication¶
Streams: Bidirectional communication channels¶
Services: Application-specific RPC definitions¶
Gateway Nodes are essential components of the Agent Gateway Protocol (AGP) architecture. They handle routing and message distribution between agents and manage the communication infrastructure. Gateway Nodes are composed of two main tables: the connection table and the subscription table.¶
The connection table maintains interfaces with neighboring nodes and local applications. It is responsible for:¶
Establishing and managing connections with other Gateway Nodes¶
Maintaining active connections with local applications¶
Handling connection setup, teardown, and error recovery¶
The connection table entries include:¶
The subscription table is used to map topic subscriptions to neighboring nodes. It manages the distribution of messages based on topic subscriptions and ensures efficient routing of pub/sub messages. The subscription table entries include:¶
Topic: The name of the topic to which the subscription applies¶
Subscriber Node IDs: List of node IDs that have subscribed to the topic¶
Subscription Status: Current status of the subscription (e.g., active, inactive)¶
The subscription table is responsible for:¶
Managing topic subscriptions from local applications and neighboring nodes¶
Routing messages to the appropriate subscribers based on topic subscriptions¶
Handling subscription updates, additions, and removals¶
Ensuring efficient and reliable message delivery¶
By maintaining these tables, Gateway Nodes facilitate seamless communication and message distribution in the AGP network, enabling real-time interactive AI applications at scale.¶
The Agent Gateway Protocol (AGP) relies on the Messaging Layer Security (MLS) protocol to provide end-to-end security for group communications between agents.¶
AGP uses MLS for the following security properties:¶
Each agent MUST:¶
MLS provides the following guarantees for agent groups:¶
Implementations MUST:¶
AGP with MLS provides:¶