a2aproject / a2aproject/a2a-python

[Bug]: Wrong error when sending a message for a terminal task

Abierto
#1,205 2 comentarios 0 reacciones 1 asignado Reclamado por @lkk7 Ver en GitHub
component: server status:awaiting response
Lenguaje dominante
Python
Estrellas
2.1k
Forks
496
Merge medio
4 d 17 h
PR fusionados (30 d)
12

Descripción

### What happened?

What the spec says about the "Send Message" operation errors:
> UnsupportedOperationError: Messages sent to Tasks that are in a terminal state [...]

What the code does (`on_message_send(...)->_setup_message_execution(...)`):
```python
if task.status.state in TERMINAL_TASK_STATES:
raise InvalidParamsError(
message=f'Task {task.id} is in terminal state: {task.status.state}'
)
```

### Relevant log output

```shell

```

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