a2aproject/a2a-java
소개
Agent2Agent(A2A) 프로토콜 공식 Java SDK
개발 도구측정된 스타 증가
- in 24h
- +1
- in 7 days
- +2
- in 15 days
- +7
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalA2A Java SDK
A Java library that helps run agentic applications as A2A servers following the Agent2Agent (A2A) Protocol.
A multi-module Maven library providing client and server support for A2A agent communication over JSON-RPC, gRPC, and REST transports.
SDK Release Support
The 1.x SDK release line is actively supported. The legacy 0.3.x SDK release line is not actively supported. This refers to SDK releases, not protocol versions: the 1.x SDK provides compatibility modules for communicating with A2A v0.3 clients and agents.
Documentation
Full documentation is available at a2aproject.github.io/a2a-java.
- Server Guide — Run your agentic Java application as an A2A server
- Client Guide — Communicate with any A2A-compliant agent
- Javadoc — Java API reference
- Community Articles — Tutorials, blog posts, and videos
- Announcements — Release announcements and project news
- Contributing — Developer guide for contributing
Quick Start
Requires Java 17+.
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>
<!-- Use a released version from https://github.com/a2aproject/a2a-java/releases -->
<version>${org.a2aproject.sdk.version}</version>
</dependency>
See the Server Guide for full setup instructions.
Build
mvn clean install
Regeneration of gRPC files
We copy https://github.com/a2aproject/A2A/blob/main/specification/grpc/a2a.proto to the spec-grpc/ project, and adjust the java_package option to be as follows:
option java_package = "org.a2aproject.sdk.grpc";
Then build the spec-grpc module with mvn clean install -Dskip.protobuf.generate=false to regenerate the gRPC classes in the org.a2aproject.sdk.grpc package.
Examples
- Hello World Server — Java A2A server with a Python client
- Hello World Client — Java A2A client with a Python server
- a2a-samples — More agent examples
Server Integrations
See Server Integrations for integrations with Java runtimes.
To contribute an integration, see CONTRIBUTING_INTEGRATIONS.md.
Extras
See the extras folder for optional add-ons (OpenTelemetry, JPA-backed task store, Kafka-based replicated queue manager, Vert.x and Android HTTP clients).
License
This project is licensed under the terms of the Apache 2.0 License.
Contributing
See CONTRIBUTING.md for contribution guidelines.
관련 프로젝트 살펴보기
불러오는 중…