Skip to main content

Module a2a

Module a2a 

Source
Expand description

A2A (Agent-to-Agent) protocol for horizontal agent communication.

A2A is Google’s protocol for horizontal agent↔agent communication. Unlike MCP which is vertical (agent→tool), A2A enables agents to discover each other, delegate tasks, and share results.

Structs§

A2AProtocol
A2A Protocol handler for inter-agent communication.
A2ARequest
A request sent by one agent to another via A2A.
A2AResponse
A response from a target agent.
AgentCard
A card describing an agent’s capabilities for discovery.
AgentCardRegistry
Global registry of available agents and their capability cards.
PendingMessage
A pending message waiting for an agent to receive it.
TaskSpec
Specification for a delegated task.

Enums§

A2AMessage
A2A Message types for inter-agent communication.
TaskPriority
Priority level for delegated tasks.

Type Aliases§

DelegationHandler
Callback type invoked when a TaskDelegation message is received.