-
Notifications
You must be signed in to change notification settings - Fork 55
Open
Description
I used a2a_samples/version_3_multi_agent/app/cmd to send a prompt to the google-a2a/samples/python/agents/helloworld agent, but it reported an error.
What do you want to send to the agent? (type ':q' or 'quit' to exit): hello world
📤 Sending JSON-RPC request:
{
"jsonrpc": "2.0",
"id": "b0e23093da17446f81bd599aefc5cd7b",
"method": "tasks/send",
"params": {
"id": "924e6edbf4074716a6066fe69d43c7ce",
"sessionId": "717d5f5178ea47ce89fb6f361934b427",
"message": {
"role": "user",
"parts": [
{
"type": "text",
"text": "hello world"
}
]
},
"historyLength": null,
"metadata": null
}
}
Traceback (most recent call last):
File "/root/project/python/a2a_samples/version_3_multi_agent/app/cmd/cmd.py", line 80, in cli
task: Task = await client.send_task(payload)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/project/python/a2a_samples/version_3_multi_agent/client/client.py", line 80, in send_task
return Task(**response["result"]) # ✅ Extract just the 'result' field
~~~~~~~~^^^^^^^^^^
KeyError: 'result'
❌ Error while sending task: 'result'
Metadata
Metadata
Assignees
Labels
No labels