Files
java-ai-agents/a2a/output/02-raw-send-message.txt

62 lines
1.1 KiB
Plaintext

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": {}
}
}
}