A2A AgentSkill examples field
- Lingua principale
- Shell
- Stelle
- 25.7k
- Fork
- 2.6k
- Merge medio
- 3g 6h
- PR unite (30g)
- 16
Descrizione
I have a question. The example of agent card defines the format as json. Why is the received JSON-RPC a text?
```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"
}
}
}
```
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java, json
- Ambito
- api, backend
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 55/100