feat:客户agent以及记忆模块功能开发

This commit is contained in:
2026-09-11 22:38:15 +08:00
parent 0197ac2ef2
commit 4da4775e8c
39 changed files with 2508 additions and 14 deletions
+7
View File
@@ -37,3 +37,10 @@ async def require_knowledge_operator(user: SysUser = Depends(get_current_user))
if user.user_type != "EMPLOYEE" or user.employee_role not in KNOWLEDGE_OPERATOR_ROLES:
raise ForbiddenError("仅运营人员可以管理知识库")
return user
async def require_customer(user: SysUser = Depends(get_current_user)) -> SysUser:
"""Allow only authenticated customer accounts to use client Agent APIs."""
if user.user_type != "CUSTOMER":
raise ForbiddenError("仅客户用户可以访问 client_agent")
return user