a2aproject / a2aproject/a2a-python
[Bug]: Wrong error when sending a message for a terminal task
Đang mở
component: server
status:awaiting response
- Ngôn ngữ chính
- Python
- Star
- 2.1k
- Fork
- 496
- Merge trung bình
- 4 ngày 17 giờ
- Pull request đã merge (30 ngày)
- 12
Mô tả
### 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
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.