a2aproject / a2aproject/a2a-samples

error while running sample/python/host/cli if use_push_notifications = True

未关闭
#244 0 条评论 0 个 reaction 已指派 1 人 已被 @pstephengoogle 认领 在 GitHub 查看
主要语言
Jupyter Notebook
星标
1.8k
派生
751
PR 合并指标
30 天内没有已合并 PR

描述

### What happened?

In https://github.com/a2aproject/a2a-samples/blob/main/samples/python/hosts/cli/__main__.py

When I make use_push_notifications = True,
an error will happen:

File "/mnt/d/GitLab/dsa2a_2/samples/python/hosts/cli/__main__.py", line 163, in completeTask
payload["pushNotification"] = {
~~~~~~~^^^^^^^^^^^^^^^^^^^^
TypeError: 'MessageSendParams' object does not support item assignment

how to fix it ?

### Relevant log output

```shell
File "/mnt/d/GitLab/dsa2a_2/samples/python/hosts/cli/__main__.py", line 163, in completeTask
payload["pushNotification"] = {
~~~~~~~^^^^^^^^^^^^^^^^^^^^
TypeError: 'MessageSendParams' object does not support item assignment
```

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。