Add a2a module: agent card, tasks, streaming, input-required and agent-to-agent calls on the A2A Java SDK, served over the JDK HTTP server

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01G8ikz8xdWuTP5yun8DZ1hk
This commit is contained in:
Claude
2026-10-11 08:35:19 +00:00
parent ec1b076e9b
commit 10545299f8
19 changed files with 1042 additions and 2 deletions
+61
View File
@@ -0,0 +1,61 @@
POST /
{
"jsonrpc": "2.0",
"id": "1",
"method": "SendMessage",
"params": {
"message": {
"messageId": "m-1",
"role": "ROLE_USER",
"parts": [
{
"text": "record"
}
]
},
"configuration": {
"blocking": true
}
}
}
Response:
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"task": {
"id": "<id-1>",
"contextId": "<id-2>",
"status": {
"state": "TASK_STATE_COMPLETED",
"timestamp": "<time>"
},
"artifacts": [
{
"artifactId": "definition",
"name": "definition",
"description": "",
"parts": [
{
"text": "A record is a final class that is a transparent",
"metadata": {},
"filename": "",
"mediaType": ""
},
{
"text": " carrier for its components.",
"metadata": {},
"filename": "",
"mediaType": ""
}
],
"metadata": {},
"extensions": []
}
],
"history": [],
"metadata": {}
}
}
}