merge: 客服Agent+RAG+画像 与 架构师最新 qyqy_develop 合并

- customer_service.py 以架构师实现为骨架(三档置信/适当性/会话记忆/话题矩阵),嫁接本人画像出口
- 知识检索契约合并两条链路:架构师 search_knowledge(KnowledgeSearchInput) + 本线
  query_knowledge 链路所需常量(ALLOWED_CONSTANTS/VECTOR_DIM/intent_for_qa_id)
- bootstrap 保留架构师 6 工具/3 Agent,补回 query_customer_profile 与 get_milvus_knowledge_writer
- model_gateway 能力映射修正 intent_classification→chat,保留空集回退兜底
- governance 免责声明限定面向客户 Agent(agent_type 由定义透传),风控结构化输出不再被追加
- 修 JWT 密钥路径(config/jwt/dev)、文档 21 号撞号→25
- 测试基线 934 passed / 1 failed(既有空集缺陷)
This commit is contained in:
qyqy
2026-09-11 15:06:44 +08:00
parent e4c4099aaa
commit 57c4add7d8
14 changed files with 388 additions and 659 deletions
@@ -64,9 +64,9 @@ class StubGovernance:
async def review(
self, result: Any, context: RequestContext, config: ResolvedAgentConfig,
memories: tuple[Any, ...],
memories: tuple[Any, ...], *, agent_type: str = "",
) -> Any:
return review_output(result, context, config, memories)
return review_output(result, context, config, memories, agent_type=agent_type)
class StubToolExecutor:
+1 -1
View File
@@ -46,7 +46,7 @@ class StubGovernance:
del context
return ()
async def review(self, result, context, config, memories):
async def review(self, result, context, config, memories, *, agent_type: str = ""):
return review_output(result, context, config, memories)