feat(ai): 改造 chat_handler 接入 AgentOrchestrator — ReAct Agent 首次跑通 + 新增会话权限码
This commit is contained in:
@@ -100,6 +100,31 @@ impl ErpModule for AiModule {
|
||||
description: "创建/编辑/删除 Copilot 规则".into(),
|
||||
module: "ai".into(),
|
||||
},
|
||||
// AI 客服会话权限
|
||||
PermissionDescriptor {
|
||||
code: "ai.chat.send".into(),
|
||||
name: "AI 客服对话".into(),
|
||||
description: "向 AI 客服发送消息".into(),
|
||||
module: "ai".into(),
|
||||
},
|
||||
PermissionDescriptor {
|
||||
code: "ai.chat.session.list".into(),
|
||||
name: "查看 AI 会话列表".into(),
|
||||
description: "查看用户的 AI 客服会话列表".into(),
|
||||
module: "ai".into(),
|
||||
},
|
||||
PermissionDescriptor {
|
||||
code: "ai.chat.session.manage".into(),
|
||||
name: "管理 AI 会话".into(),
|
||||
description: "创建/关闭 AI 客服会话".into(),
|
||||
module: "ai".into(),
|
||||
},
|
||||
PermissionDescriptor {
|
||||
code: "ai.chat.session.history".into(),
|
||||
name: "查看 AI 会话历史".into(),
|
||||
description: "查看 AI 客服会话消息历史".into(),
|
||||
module: "ai".into(),
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user