a2aproject / a2aproject/a2a-samples

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

オープン
#244 コメント 0 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。