A2A interface works with the AgentOS runtime to provide this functionality.
Setup
Seta2a_interface=True when creating an AgentOS instance:
a2a_agentos.py
a2a-interface-initialization.py
A2A Endpoints
For each available agent, team and workflow, the following A2A-compatible endpoints will be available:Agents
-
/a2a/agents/{id}/.well-known/agent-card.json: Returns the Agent Card describing the agent in A2A format. See API reference. -
/a2a/agents/{id}/v1/message:stream: Runs the agent, streaming the responses as events in A2A format. See API reference and A2A protocol docs. -
/a2a/agents/{id}/v1/message:send: Runs the agen, returning the response in A2A format (non-streaming). See A2A protocol docs.
Teams
-
/a2a/teams/{id}/.well-known/agent-card.json: Returns the Team Card describing the Team in A2A format. See API reference. -
/a2a/teams/{id}/v1/message:stream: Runs the team, streaming the responses as events in A2A format. See API reference and A2A protocol docs. -
/a2a/teams/{id}/v1/message:send: Runs the team, returning the response in A2A format (non-streaming). See API reference.
Workflows
-
/a2a/workflows/{id}/.well-known/agent-card.json: Returns the Workflow Card describing the Workflow in A2A format. See API reference. -
/a2a/workflows/{id}/v1/message:stream: Runs the workflow, streaming the responses as events in A2A format. See API reference and A2A protocol docs. -
/a2a/workflows/{id}/v1/message:send: Runs the workflow, returning the response in A2A format (non-streaming). See API reference.
A2A clients expect a server to expose only a single agent.
To use your Agno A2A interface with those clients, simply use
/a2a/agents/{id}/ (or /a2a/teams/{id}/, /a2a/workflows/{id}/) as the base url.Connecting to A2A Servers
Agno provides two ways to connect to A2A-compatible servers:Using A2AClient
For direct A2A protocol access:Using RemoteAgent
For a higher-level agent interface:Developer Resources
- View AgentOS Reference
- View A2A Client Documentation
- View A2A Protocol Documentation
- View Examples
- View Cookbook