Skip to main content

Module a2a

Module a2a 

Source
Expand description

A2A Protocol Implementation

First-class support for the Agent-to-Agent (A2A) protocol, enabling this agent to work as both a client and server in the A2A ecosystem.

§Transports

  • JSON-RPC (default) — server.rs / client.rs
  • gRPCgrpc.rs (tonic-based, compiled from proto/a2a/v1/a2a.proto)

Re-exports§

pub use client::A2AClient;

Modules§

bridge
Bridge between hand-written serde types (a2a::types) and tonic/prost-generated types (a2a::proto).
client
A2A Client - for connecting to other A2A agents
grpc
gRPC transport for the A2A protocol.
proto
Generated protobuf/tonic types from proto/a2a/v1/a2a.proto.
server
A2A Server - serve as an A2A agent
spawn
Spawn an autonomous A2A agent runtime with auto peer discovery.
types
A2A Protocol Types
worker
A2A Worker - connects to an A2A server to process tasks