v3.1 + 批次0: 智能回复重构基线 - ApprovalMatcher + 关键词降级 + 文档速修 + v4.0任务书面化

This commit is contained in:
Simon
2026-07-17 23:08:59 +08:00
parent 5a77a89ab1
commit 3ed86d5fb3
181 changed files with 19738 additions and 2655 deletions
+20
View File
@@ -150,3 +150,23 @@ class MessageListResponse(BaseModel):
items: List[MessageResponse]
has_more: bool
# --------------------------------------------------------------------------
# 历史消息列表响应 Schema(跨会话聚合)
# --------------------------------------------------------------------------
class HistoryMessageListResponse(BaseModel):
"""历史消息列表响应(跨会话聚合)。
用于按员工ID聚合查询所有会话的历史消息,
返回合并后的时间线、是否有更多消息、以及会话摘要映射。
Attributes:
items: 消息列表(按时间倒序,最新在前)
has_more: 是否还有更多历史消息
conversation_summaries: {conversation_id: "前20字摘要"}
"""
items: List[MessageResponse]
has_more: bool
conversation_summaries: Dict[str, str]