a2a-python icon indicating copy to clipboard operation
a2a-python copied to clipboard

[Question] Why is the method of A2A-python-sdk inconsistent with that of A2A protocol?

Open zhangmianhongni opened this issue 1 year ago • 5 comments

In the A2A protocol, the A2A client implements the on_send_task method, and the corresponding request path is task/send.

There is a conflict between python-sdk and A2A protocol, I would like to ask, which should be used as the standard? Is it because the SDK is still under development, or will the protocol be modified to message/send?

However, in the current A2A-python project, the A2A client implements the on_send_message method, and the corresponding request path is message/send.

Image

Image

zhangmianhongni avatar May 16 '25 02:05 zhangmianhongni

i also asked same question in the main A2A repo i feel like its should be on_send_task not on_send_message because any message thats send my host agent to remote agent is classified as a task

Abiorh001 avatar May 16 '25 05:05 Abiorh001

Same question. I check/review specification/json/a2a.json it's still "tasks/send" and "tasks/sendSubscribe"

graphnj avatar May 16 '25 09:05 graphnj

The protocol has been updated, and the SDK hasn't included this change yet. @kthota-g for context

holtskinner avatar May 16 '25 15:05 holtskinner

Hi, The SDK is implementing the upcoming version of the protocol and so the changes.

Updates to the protocol are being merged into next branch here - https://github.com/google/A2A/tree/next. This is still wip and there are a few outstanding PRs currently.

Here is the PR that describes the method name changes - https://github.com/google/A2A/commit/b97081590ad9c9a6a8f5c45da92368aebb68e15d

kthota-g avatar May 16 '25 19:05 kthota-g

This should be updated in the latest version of the SDK

holtskinner avatar May 27 '25 21:05 holtskinner