Repository navigation
feat(ai): 增加 FA 助手只读工具开关 - #555
Closed
Xiaohuidog wants to merge 1 commit into
Closed
Xiaohuidog wants to merge 1 commit into
Xiaohuidog wants to merge 1 commit into
Conversation
默认关闭只读工具,由 Team 直接回答。启用时提供成员实际 ID 和 可用工具说明,按需委派。WebSocket 只转发 Team 最终正文和结束帧。 本地 Chrome 验收使用 DeepSeek-V4-Flash 和固定监控样本。 关闭时发送 use_tools=false,委派、Agent 和 server_status 均为零次, 网页显示一条 Team 答复,101 个正文分片后收到 [DONE]。 开启时发送 use_tools=true,Team 委派一次,Agent 执行一次模拟 server_status。网页显示一条 Team 答复,222 个正文分片后收到 [DONE]。 两种情形均未读取本机监控数据。 隔离补丁回归 50 项通过,1 项因需要集成环境跳过。
Owner
|
感谢贡献。这个 PR 的方向和测试都不错(本地 32 项 AI 测试通过),但暂不合并:只读工具会暴露服务器状态、存储文件、定时任务和 Redis 键名,目前只靠前端开关控制,后端缺少角色/权限门禁;另外流式正文依赖 RunContentCompletedEvent,缺少兜底,关工具后的 Team 直答也还需要真实模型回归。master 已加超管门禁(9520812f)。如愿意继续,请基于最新 master 变基,并补上后端权限校验、前端开关可见性限制和真实模型回归测试,届时欢迎重新提交。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动
use_tools。[DONE]。验收
在本地 Chrome 使用
DeepSeek-V4-Flash,两轮均提问「现在服务器的内存和磁盘使用率是多少?」。监控工具使用固定模拟数据,两轮均未读取本机资源。use_tools=falseserver_status调用均为 0。网页只显示一条最终答复,101 个正文分片后收到[DONE]。use_tools=trueserver_status。网页只显示一条最终答复,内存 62.5%、根分区 68.0%、/data45.0%。222 个正文分片后收到[DONE]。另用固定模型响应复现了 Team 委派前的开场白,确认开场白和 Agent 中间内容均未进入 WebSocket 正文。隔离提交回归 50 项通过,1 项因需要集成环境跳过。
提交范围
仅
3f0376c1,包含 7 个相关代码及测试文件。