Overview
Rogue supports Google’s A2A (Agent-to-Agent) protocol, which provides a standardized way for agents to communicate. The A2A protocol is designed specifically for agent-to-agent interactions and includes features for streaming responses, task management, and agent capabilities discovery.What is A2A?
The Agent-to-Agent (A2A) protocol is an open standard developed by Google for enabling communication between AI agents. It provides:- Standardized Message Format: Consistent structure for agent communication
- Streaming Support: Real-time streaming of agent responses
- Task Management: Built-in support for managing complex tasks
- Capabilities Discovery: Agents can discover each other’s capabilities
- Error Handling: Standardized error responses
A2A Protocol Specification
View the official A2A protocol documentation
Supported Transports
HTTP Transport
Rogue communicates with A2A agents over HTTP using RESTful API calls. How it works:- Rogue sends POST requests to your agent’s A2A endpoint
- Your agent processes the request according to A2A specifications
- Your agent returns A2A-compliant responses
- Rogue evaluates the responses against test scenarios
- Your agent must expose an A2A-compliant HTTP endpoint
- The endpoint should handle standard A2A message formats
- Support for standard HTTP methods (POST, GET)
Integration Steps
To integrate your agent with Rogue via A2A:- Build your agent using any framework of your choice
- Wrap your agent in an A2A agent executor using the a2a sdk. Example for this executor can be found here
- Create an A2A web-app that accepts A2A-formatted requests, also using the sdk. Example can be found here
- Configure Rogue to connect to your agent’s endpoint
- Test the connection to ensure proper A2A communication
Example Implementations
Rogue includes several example agents that demonstrate A2A integration:Python Examples
Basic A2A Agent
Simple Python implementation of an A2A agent for a T-shirt store
LangGraph A2A Agent
LangGraph-based A2A agent with advanced features
TypeScript Examples
LangGraph.js A2A Agent
TypeScript implementation using LangGraph.js
Vercel AI A2A Agent
TypeScript implementation using Vercel AI SDK