CHAT-002 P0 | 定义 ChatScope API Contract 前后端接口协议 #83
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
完成 ✅
API 契约已写入
docs/chat-scope-api-contract.md文档内容
POST /sessions— open-or-create (200/201)GET /sessions— 分页列表 + scope 过滤GET /sessions/:id/messages— 消息历史 (含 citations)POST /sessions/:id/messages— 同步消息POST /sessions/:id/stream— SSE 流式 (5 种 chunk type)PATCH /sessions/:id— 更新会话属性 (NEW)DELETE /sessions/:id— 软删除下一步
#79 M7-01 — Prisma ChatSession 新增 scopeType / scopeId / parentKnowledgeBaseId