docs: 同步 Agent 上传与优化接口说明

This commit is contained in:
yuzhe
2026-07-23 13:55:00 +08:00
parent 557e24883d
commit 4569724cec
3 changed files with 10 additions and 1 deletions

View File

@@ -113,8 +113,14 @@ curl "http://localhost:3010/api/works/12?round=2" \
# 按轮返回该作品全部反馈和验收事件
curl http://localhost:3010/api/works/12/annotations \
-H "Authorization: Bearer $DELIVERY_DESK_API_KEY"
# 返回用于优化指定轮次内容与图片的精简上下文;默认只含未撤回的开放反馈
curl "http://localhost:3010/api/works/12/optimization-context?round=2" \
-H "Authorization: Bearer $DELIVERY_DESK_API_KEY"
```
`optimization-context` 返回项目、作品、轮次、标题、正文、Tag、图片元信息以及图片批注、文字批注、总体反馈和回复。需要审计已关闭或已撤回的历史反馈时增加 `include_history=true`;该接口只读,不会修改作品。
标题、正文和 Tag 选区批注使用:
```json