Skip to main content
Version: 0.2.0

A2A Server

Enable Agent-to-Agent (A2A) communication for agent collaboration.

What is A2A?

A2A is a protocol for agents to discover and communicate with each other across different systems.

Enabling A2A

export AK_A2A_ENABLED=true
export AK_A2A_URL=https://your-domain.com/a2a
export AK_A2A_PORT=8002

or

a2a:
enabled: true
port: 8000
url: https://your-domain.com/a2a

Starting A2A Server

from agentkernel.api import RESTAPI

if __name__ == "__main__":
RESTAPI.run()

Agent Capabilities

Agents automatically generate A2A capability cards:

Agent Discovery

GET /a2a/agents

Response:

{
"agents": [
{
"name": "assistant",
"url": "https://your-domain.com/a2a/assistant"
}
]
}

Agent Communication

POST /a2a/assistant/message

Request:

{
"message": "Hello from another agent!",
"sender_id": "agent-123"
}

Multi-Agent Network