[Feat]: Add Android support for A2A HTTP Client and decouple JdkA2AHttpClient (v0.3.x)
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- android
- Lĩnh vực
- backend-api-design, mobile
Hướng nghiên cứu
Issue đề cập đến JdkA2AHttpClient được hardcode trong A2A.java và các transport provider. Trước tiên, hãy kiểm tra cấu trúc của module http-client và client hiện có. Tìm pattern ServiceLoader (SPI) để hiểu cách triển khai A2AHttpClientFactory. Các record trong module spec/ cần các annotation @JsonProperty. 'Done' có nghĩa là SDK hoạt động trên Android với một AndroidA2AHttpClient mới và các bản sửa lỗi Jackson đã được áp dụng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Is your feature request related to a problem? Please describe.
Problem
Currently, the A2A Java SDK hardcodes the use of JdkA2AHttpClient in several places (such as A2A.java and various transport providers). This client relies on java.net.http.HttpClient, which is not available in standard Android environments, making the SDK unusable on Android.
Additionally, when running on Android, Jackson fails to deserialize Java records properly without explicit property annotations, leading to parsing errors for spec models.
Describe the solution you'd like
Proposed Solution
- SPI Pattern: Introduce
A2AHttpClientFactoryandA2AHttpClientProviderusing Java'sServiceLoader(SPI) to dynamically load the best HTTP client available on the classpath. - Android Client: Implement
AndroidA2AHttpClientusingHttpURLConnection(which is safe for Android). - Jackson Fixes: Add
@JsonPropertyannotations to records in thespec/module to ensure they can be parsed on Android.
Describe alternatives you've considered
No response
Additional context
Goal
The goal is to make the http-client module compatible with Android by:
- Decoupling the HTTP client implementation so it is not hardcoded to the JDK client.
- Providing an Android-compatible HTTP client implementation.
- Fixing the Jackson parsing issues for records on Android.
Code of Conduct
- I agree to follow this project's Code of Conduct
- Ngôn ngữ chính
- Java
- Star
- 504
- Fork
- 184
- Merge trung bình
- 1 ngày 13 giờ
- Pull request đã merge (30 ngày)
- 31
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của a2aproject/a2a-java
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
a2aproject/a2a-java#1012 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
a2aproject/a2a-java#464 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Create a sample that demonstrates how to use a shared contextId across multiple tasksCó thể làm lại được @tanish111 đã nhận 354 ngày trước và không có pull request nào đang mở. Đang mởsample
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
a2aproject/a2a-java#375 · 5 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
a2aproject/a2a-java#1207 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Enable checkstyle failOnViolation=trueCó thể đã có người làm @ZYZ666-RGB đã nhận 3 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
a2aproject/a2a-java#1206 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của a2aproject/a2a-java
Issue tương tự
-
BoxAttachmentMulti parsing leaks IOException / ArrayIndexOutOfBoundsException on malformed content instead of IllegalArgumentExceptionCó thể đã có người làm @Kshot3000 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
ergoplatform/ergo-appkit#272 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
utopia-rise/godot-jvm#1004 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
spring-projects/spring-grpc#442 ·