Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[Feat]: Add Android support for A2A HTTP Client and decouple JdkA2AHttpClient (v0.3.x)

オープン
#793 コメント 12 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
静か
技術スタック
android

調査の方向性

この issue では、A2A.java とトランスポートプロバイダーに JdkA2AHttpClient がハードコードされていることが言及されています。まず http-client モジュールの構成と既存のクライアントを調べます。A2AHttpClientFactory の実装方法を理解するために、ServiceLoader (SPI) パターンを確認します。spec/ モジュールの records には @JsonProperty アノテーションが必要です。'Done' は、新しい AndroidA2AHttpClient によって SDK が Android で動作し、Jackson の修正が適用されていることを意味します。

索引モデルが issue の本文から書いたものです。

説明

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 A2AHttpClientFactory and A2AHttpClientProvider using Java's ServiceLoader (SPI) to dynamically load the best HTTP client available on the classpath.
  • Android Client: Implement AndroidA2AHttpClient using HttpURLConnection (which is safe for Android).
  • Jackson Fixes: Add @JsonProperty annotations to records in the spec/ 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:

  1. Decoupling the HTTP client implementation so it is not hardcoded to the JDK client.
  2. Providing an Android-compatible HTTP client implementation.
  3. Fixing the Jackson parsing issues for records on Android.
Code of Conduct
  • I agree to follow this project's Code of Conduct
主要言語
Java
スター
505
フォーク
185
平均マージ
1日 9時間
マージ済み PR(30日)
26

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

a2aproject/a2a-java のほかの issue

a2aproject/a2a-java の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。