a2aproject / a2aproject/a2a-python

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

オープン
#1,205 コメント 2 件 リアクション 0 件 担当者 1 名 @lkk7 が担当を希望しています GitHub で見る
component: server status:awaiting response
主要言語
Python
スター
2.1k
フォーク
496
平均マージ
4日 17時間
マージ済み PR(30日)
12

説明

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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。