a2aproject / a2aproject/a2a-samples

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

Abierto
#244 0 comentarios 0 reacciones 1 asignado Reclamado por @pstephengoogle Ver en GitHub
Lenguaje dominante
Jupyter Notebook
Estrellas
1.8k
Forks
751
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.