A2A Java SDK

Implement the Agent2Agent Protocol in Java

A multi-module Maven library providing client and server support for A2A agent communication over JSON-RPC, gRPC, and REST transports.

A2A Server

Run your agentic Java application as an A2A server. Implement AgentExecutor and let the SDK handle protocol, routing, and streaming.

A2A Client

Communicate with any A2A-compliant agent. Supports streaming, push notifications, and task lifecycle management out of the box.

Multiple Transports

JSON-RPC 2.0, gRPC, and HTTP+JSON/REST transports — pick what fits your stack, or support them all simultaneously.

Protocol Compatibility

Serve v1.0 and v0.3 clients side-by-side with zero changes to your AgentExecutor. The compat layer handles conversion automatically.

Quick Install

Add the A2A Java SDK reference server for JSON-RPC to your Maven project:

<dependency>
    <groupId>org.a2aproject.sdk</groupId>
    <artifactId>a2a-java-sdk-reference-jsonrpc</artifactId>
    <version>${org.a2aproject.sdk.version}</version>
</dependency>

See the Server Guide and Client Guide for full setup instructions, or browse Community Articles for tutorials and examples.