a2aproject / a2aproject/A2A

A2A AgentSkill examples field

オープン
#879 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
triaged
主要言語
Shell
スター
25.7k
フォーク
2.6k
平均マージ
3日 6時間
マージ済み PR(30日)
16

説明

I have a question. The example of agent card defines the format as json. Why is the received JSON-RPC a text?

Image

```java
Agent Card
AgentSkill skill = new AgentSkill(
"ai-whiteboard-id",
"create a whiteboard",
"use it for create a whiteboard, input must be {\"skillId\":\"ai-whiteboard-id\",\"param\":{\"name\":\"whiteboard_1 name\"}}",
List.of("whiteboard"),
List.of(
"input: {\"skillId\":\"ai-whiteboard-id\",\"param\":{\"name\":\"whiteboard_1 name\"}}",
"input: {\"skillId\":\"ai-whiteboard-id\",\"param\":{\"name\":\"whiteboard_2 name\"}}"),
List.of("application/json"),
List.of("application/json"));
```

a2a interface
2025-07-17T15:00:42.579Z DEBUG 2555609 --- [a2a-server] [nio-9080-exec-4] com.google.a2a.server.A2AController : Received JSONRPCRequest:
```json
{
"id" : "736fd61a-ac95-4c2e-bc74-3cbc199e5ad5",
"jsonrpc" : "2.0",
"method" : "message/send",
"params" : {
"configuration" : {
"acceptedOutputModes" : [ "text", "text/plain", "image/png" ]
},
"message" : {
"contextId" : "17dff8d0-a5d6-4368-92e6-d88bc27da1ad",
"kind" : "message",
"messageId" : "1df29cc1-9fba-4bfa-878e-fb9fee1ae8ed",
"parts" : [ {
"kind" : "text",
"text" : "create a whiteboard named testa2a001"
} ],
"role" : "user"
}
}
}
```

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Look at the AgentSkill class definition and how examples are serialized/deserialized. Compare the Agent Card example format with the actual JSON-RPC request received in A2AController. Check if there's a mismatch in data types (JSON vs text) in the examples field. Run tests related to AgentSkill or A2A message handling to see the current behavior.

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

評価

技術スタック
java, json
領域
api, backend
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
55/100

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

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