a2aproject / a2aproject/A2A

[Bug]: Clarify streaming errors in REST transport binding

未關閉
#1,262 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Shell
星號
25.7k
分支
2.6k
平均合併
3 天 6 小時
30 天內合併 PR
16

描述

### What happened?

Currently there's no information on how to return errors for streaming requests in REST transport binding.
For JSONRPC which also uses SSE for streaming we return a data line with jsonrpc error struct in it.
```
data: {"jsonrpc": "2.0", "id": 1, "result": { /* Task | Message | TaskArtifactUpdateEvent | TaskStatusUpdateEvent */ }}

data: {"jsonrpc": "2.0", "id": 1, "error": { /* details */ }}
```

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。