a2aproject / a2aproject/a2a-python

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

未關閉
#1,205 2 則留言 0 個 reaction 已指派 1 人 已被 @lkk7 認領 在 GitHub 檢視
component: server status:awaiting response
主要語言
Python
星號
2.1k
分支
496
平均合併
4 天 17 小時
30 天內合併 PR
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 摘要。