Getting started Community Training Tutorials Documentation APIs, AI & Tools
Consumer URL
Policy Name |
A2A Agent Card |
Summary |
Rewrites the Agent Card URL to match the public URL of the gateway |
Category |
A2A |
First Omni Gateway version available |
v1.9.3 |
Release Notes |
|
Returned Status Codes |
| This policy supports Agent2Agent Protocol (A2A) version v0.3.0. To learn more about A2A versions, see A2A Releases. |
The A2A Agent Card Policy rewrites the URL in the A2A Agent Card responses so that the exposed URL points to the public endpoint of the Omni Gateway A2A server instance rather than directly to backend services. This ensures that all client requests are routed through Omni Gateway, enabling it to enforce security and access controls, while preventing direct access to backend resources.
The A2A Agent Card policy also enables the Total Agent Calls metric that tracks the total successful and unsuccessful calls made to the agent. To view Total Agent Calls, see Viewing Key Metrics in API Manager for Managed Omni Gateway.
The A2A Agent Card policy doesn’t process requests. It processes responses as follows:
JSON responses: The policy buffers the full response body to rewrite the URLs. This applies to agent card GET requests and to JSON POST responses. It also applies when the response has no Content-Type header.
SSE responses: The policy processes the stream one event at a time, rewriting the URLs in each event, and doesn’t buffer the full stream.
Buffered payloads count toward the Omni Gateway payload limit, which is 1 MB by default. To change the limit on a self-managed Omni Gateway, set the FLEX_DOWNSTREAM_CONNECTION_BUFFER_LIMIT_BYTES environment variable. In Connected Mode, you can also set Global connection buffer limit in Runtime Manager. For more information, see Configure Global and Routing Settings in Runtime Manager. For more information about the limit, see Omni Gateway Limits and Performance Metrics.
When you apply the policy from the UI, the following parameters are displayed:
| Element | Description |
|---|---|
Consumer URL |
The consumer URL of the agent’s A2A service where JSON-RPC requests are sent. |
Card Path |
The path where the agent presents the card. |