A2A Gateway
The A2A Gateway enables agents running in AgentVisor to communicate with external A2A (Agent-to-Agent) compatible agents. This allows your agents to delegate tasks, query capabilities, and collaborate with other AI agents.
Overview
The A2A Gateway implements the Google Agent-to-Agent Protocol, a JSON-RPC 2.0 based protocol for agent-to-agent communication. AgentVisor acts as a gateway, managing connections, credentials, and policy enforcement on behalf of your agents.
┌──────────────────────────────────────────────────────────────────────┐
│ External A2A Agents │
│ │
│ ┌──────────────────┐ ┌──────────────────┐ ┌────────────────┐ │
│ │ Research Agent │ │ Code Agent │ │ Data Agent │ │
│ │ /.well-known/ │ │ /.well-known/ │ │ /.well-known/ │ │
│ │ agent-card.json │ │ agent-card.json │ │ agent-card.json│ │
│ └────────▲─────────┘ └────────▲─────────┘ └───────▲────────┘ │
│ │ │ │ │
│ │ JSON-RPC 2.0 / SSE │ │
│ │ │ │ │
├───────────┼───────────────────────┼──────────────────────┼──────────┤
│ Host Runtime (A2A Gateway) │ │ │
│ │ │ │ │
│ ┌────────┴───────────────────────┴──────────────────────┴────────┐ │
│ │ A2A Manager │ │
│ │ │ │
│ │ • Connection pooling (LRU cache) │ │
│ │ • Credential resolution (per-principal or static) │ │