docs: 更新协议文档并清理过期的问题追踪文档

This commit is contained in:
qzl
2026-03-27 14:05:14 +08:00
parent c592cc7854
commit 47e2aa3eb9
18 changed files with 1499 additions and 778 deletions
+16 -7
View File
@@ -269,12 +269,21 @@ WAV 音频转写。
---
## 通用错误
## 错误约定(Agent
当前实现的错误主体为 FastAPI `detail` 字段
Agent 路由的错误同样遵循统一 HTTP 错误契约,详见
```json
{
"detail": "..."
}
```
- `docs/protocols/common/http-error-codes.md`
本文件只补充 Agent 相关错误码示例:
- `AGENT_RUN_INPUT_INVALID`
- `AGENT_RUN_MESSAGES_INVALID`
- `AGENT_INVALID_LAST_EVENT_ID`
- `AGENT_SSE_CONNECTION_LIMIT`
- `AGENT_ATTACHMENT_EMPTY`
- `AGENT_ATTACHMENT_TOO_LARGE`
- `AGENT_AUDIO_UNSUPPORTED_FORMAT`
- `AGENT_AUDIO_TOO_LARGE`
- `AGENT_AUDIO_EMPTY`
- `AGENT_ASR_UNAVAILABLE`