a2aproject / a2aproject/a2a-samples

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

Open
#244 0 comments 0 reactions 1 assignee Claimed by @pstephengoogle View on GitHub
Dominant language
Jupyter Notebook
Stars
1.8k
Forks
751
PR merge metrics
No merged PRs in 30d

Description

### 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.