a2aproject / a2aproject/a2a-python

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

Ouverte
#1,205 2 commentaires 0 réactions 1 personne assignée Réclamée par @lkk7 Voir sur GitHub
component: server status:awaiting response
Langage dominant
Python
Étoiles
2.1k
Forks
496
Merge moyen
4 j 17 h
PR mergées (30 j)
12

Description

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

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.