Repository navigation
功能:活动面板新增实时性能瀑布、调用节点与历史回放 - #4
Open
qingfengyuhuan wants to merge 1 commit into
Open
qingfengyuhuan wants to merge 1 commit into
qingfengyuhuan wants to merge 1 commit into
Conversation
接入模型首 token、工具排队与执行、SSE 到达及前端绘制计时,并保存执行轨迹。 支持工具列表、性能瀑布、调用节点切换、双向定位、节点详情与真实历史回放。 补齐取消收尾、默认折叠、手动打开详情和子任务轨迹关联。 仅包含本功能生产代码及瀑布运行资源,排除图表功能调整、测试、验收数据与本地配置。 验证暂存区独立副本:后端 60 项、前端 26 项通过;TypeScript 和 ESLint 检查通过。
This branch has not been deployed
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.
问题与效果
现有活动列表可以查看工具输入输出,但难以定位一次问数的模型等待、工具排队、语义查询及前端交接耗时。本 PR 在原活动入口中增加真实执行轨迹,支持「工具调用/性能瀑布/调用节点」三种视图,执行时更新,完成或取消后保留可查看、可回放的记录。
例如一次包含语义召回和指标查询的问数,可以从工具卡定位到瀑布的 SQL 子阶段,也可以从节点或 SQL 子阶段反向定位到对应的那一次工具调用,避免同名调用混淆。
功能范围
计时口径与边界
bash → grep等跨工具纠错关系。配套变更与提交边界
main单独整理,只有性能分析功能提交。Python 工作区扫描优化单独在 性能优化:避免 Python 工具扫描依赖和缓存目录 #3;本 PR 的 Python 文件仅增加阶段计时。后续合并两者时需保留计时与扫描优化。answer-data.ts。验证
使用仅含本 PR 功能代码的独立副本验证,未依赖其他本地功能改动:
tsc --noEmit和本次生产代码 ESLint 检查通过。验证用的新增本地用例按本次提交范围要求未放入 PR。截图用于说明界面交互,图中耗时属于一次具体执行,不作为性能提升的对照结论。
界面截图
性能瀑布
调用节点与详情
图片保存在 fork 的独立素材分支,并使用固定提交地址引用,不进入本 PR 的功能代码差异。