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:
@@ -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": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user