From aee54dce42f26311af0efbfcdc0c95bad4bc9ace Mon Sep 17 00:00:00 2001 From: V-LiuShuang Date: Fri, 3 Apr 2026 15:25:45 +0800 Subject: [PATCH] add --- agent_tools.json | 20 +- atom_scenario.json | 302 ++++++++ flow_scenario.json | 1343 +++++++++++++++++++++++++++++++++++ se_debugger_tools.json | 584 --------------- se_test_engineer_tools.json | 404 ----------- 5 files changed, 1655 insertions(+), 998 deletions(-) create mode 100644 atom_scenario.json create mode 100644 flow_scenario.json delete mode 100644 se_debugger_tools.json delete mode 100644 se_test_engineer_tools.json diff --git a/agent_tools.json b/agent_tools.json index a4ca8ed..c658856 100644 --- a/agent_tools.json +++ b/agent_tools.json @@ -1,7 +1,7 @@ { "debugger": [ { - "name": "knowledge-query", + "name": "Knowledge-Query", "description": "按用户输入的内容意图,在知识库中检索相关内容进行汇总输出", "inputSchema": { "type": "object", @@ -30,7 +30,7 @@ } }, { - "name": "generate-download-link", + "name": "Generate-Download-Link", "description": "将用户指定的数据或文档打包生成下载链接", "inputSchema": { "type": "object", @@ -59,7 +59,7 @@ } }, { - "name": "send-mail", + "name": "Send-Mail", "description": "将指定的邮件内容发送给指定用户", "inputSchema": { "type": "object", @@ -93,7 +93,7 @@ } }, { - "name": "project-information-query", + "name": "Project-Information-Query", "description": "基于用户输入的项目名称、别名和五码信息,查询项目的基础信息,包含项目名称、项目别名、BU、PPM、BIOS Code、PJE、Phase", "inputSchema": { "type": "object", @@ -158,7 +158,7 @@ } }, { - "name": "project-file-query", + "name": "Project-File-Query", "description": "基于用户输入的项目名称、别名、五码和文档名称信息,查询该项目的指定文档", "inputSchema": { "type": "object", @@ -197,7 +197,7 @@ } }, { - "name": "issue-information-query", + "name": "Issue-Information-Query", "description": "基于用户输入的issue描述或issue defect ID,查询相似的Issue信息,包含Issue的标题、描述、所属项目、状态、解决方案", "inputSchema": { "type": "object", @@ -248,7 +248,7 @@ } }, { - "name": "issue-data-query", + "name": "Issue-Data-Query", "description": "基于用户输入的项目名称或项目五码,查询对应项目的Issue统计数据,包含Issue的总数量、Open Issue数量、Close Issue数量、Close Rate数据", "inputSchema": { "type": "object", @@ -294,7 +294,7 @@ } }, { - "name": "log-information-inquiry", + "name": "Log-Information-Inquiry", "description": "基于用户输入的issue defect ID,查询相关的log基础信息,包含log标题、所属项目、所处项目阶段、Log文档名及下载地址", "inputSchema": { "type": "object", @@ -343,7 +343,7 @@ } }, { - "name": "log-analysis-results", + "name": "Log-analysis-results", "description": "基于用户输入的issue defect ID,查询对应的log解析结果文档内容,并将内容汇总后输出对应结论", "inputSchema": { "type": "object", @@ -372,7 +372,7 @@ } }, { - "name": "get-debugging-strategy", + "name": "Get-Debugging-Strategy", "description": "基于用户输入的Issue描述,对接DIKW系统获取对应Issue的调试策略", "inputSchema": { "type": "object", diff --git a/atom_scenario.json b/atom_scenario.json new file mode 100644 index 0000000..feab199 --- /dev/null +++ b/atom_scenario.json @@ -0,0 +1,302 @@ +{ + "scenarios": { + "debugger": [ + { + "scenarioName": "Testing and Debugging Q&A", + "description": "提供笔记本电脑测试和调试的知识问答服务,通过用户提供的简单自然语言描述,服务可快速定位相关知识文档,提供清晰的排查步骤与修复方案等相关知识内容。", + "agents": [ + { + "agent": "Knowledge Q&A", + "description": "提供笔记本电脑测试和调试的知识问答服务,通过用户提供的简单自然语言描述,服务可快速定位相关知识文档,提供清晰的排查步骤与修复方案等相关知识内容。", + "agentSteps": [ + "意图理解:理解用户通过自然语言表达的查询知识意图", + "知识检索:在知识库中检索相关知识内容", + "知识回答:汇总检索到的知识,输出知识内容" + ], + "toolCallOrder": [ + { + "order": 1, + "tool": "Knowledge-Query", + "description": "按用户输入的内容意图,在知识库中检索相关内容进行汇总输出" + } + ] + } + ] + }, + { + "scenarioName": "Data Download", + "description": "按照用户指令生成指定数据的下载链接,由用户点击下载至本地使用", + "agents": [ + { + "agent": "Data Download", + "description": "按照用户指令生成指定数据的下载链接,由用户点击下载至本地使用", + "agentSteps": [ + "调用Generate-Download-Link生成下载链接,供用户点击下载" + ], + "toolCallOrder": [ + { + "order": 1, + "tool": "Generate-Download-Link", + "description": "将指定的数据或文档打包生成下载链接" + } + ] + } + ] + }, + { + "scenarioName": "send_email", + "description": "通知邮件内容,发送邮件通知", + "agents": [ + { + "agent": "Send Mail", + "description": "通知邮件内容,发送邮件通知", + "agentSteps": [ + "调用Send-Mail发送邮件通知" + ], + "toolCallOrder": [ + { + "order": 1, + "tool": "Send-Mail", + "description": "发送邮件通知" + } + ] + } + ] + }, + { + "scenarioName": "Project Query", + "description": "通过输入项目名称、别名、五码和文件名称信息,查询项目的基础信息和对应项目文档数据", + "agents": [ + { + "agent": "Project Query", + "description": "通过输入项目名称、别名、五码和文件名称信息,查询项目的基础信息和对应项目文档数据", + "agentSteps": [ + "通过输入项目名称、别名、五码信息,调用Project-Information-Query查询项目的基础信息", + "通过输入项目名称、别名、五码和文件名称信息,调用Project-File-Query查询对应项目文档数据" + ], + "toolCallOrder": [ + { + "order": 1, + "tool": "Project-Information-Query", + "description": "基于用户输入的项目名称、别名和五码信息,查询项目的基础信息,包含项目名称、项目别名、BU、PPM、BIOS Code、PJE、Phase" + }, + { + "order": 2, + "tool": "Project-File-Query", + "description": "基于用户输入的项目名称、别名、五码和文档名称信息,查询该项目的指定文档" + } + ] + } + ] + }, + { + "scenarioName": "Issue Query", + "description": "通过输入Issue描述或defect ID,提供TDMS系统中Issue的数据查询服务,支持查询的Issue数据包含Issue基础信息(包含Issue的标题、描述、所属项目、状态、解决方案),通过输入项目名称或五码信息,查询项目Issue统计数据(包含指定项目下Issue的总数量、Open Issue数量、Close Issue数量、Close Rate数据)", + "agents": [ + { + "agent": "Issue Query", + "description": "通过输入Issue描述或defect ID,提供TDMS系统中Issue的数据查询服务,支持查询的Issue数据包含Issue基础信息(包含Issue的标题、描述、所属项目、状态、解决方案),通过输入项目名称或五码信息,查询项目Issue统计数据(包含指定项目下Issue的总数量、Open Issue数量、Close Issue数量、Close Rate数据)", + "agentSteps": [ + "通过输入Issue描述或Issue defect ID,调用Issue-Information-Query查询相似Issue的基础信息", + "通过输入的项目名称或项目五码,调用Issue-Data-Query查询Issue统计数据" + ], + "toolCallOrder": [ + { + "order": 1, + "tool": "Issue-Information-Query", + "description": "基于用户输入的issue描述或issue defect ID,查询相似的Issue信息,包含Issue的标题、描述、所属项目、状态、解决方案" + }, + { + "order": 2, + "tool": "Issue-Data-Query", + "description": "基于用户输入的项目名称或项目五码,查询对应项目的Issue统计数据,包含Issue的总数量、Open Issue数量、Close Issue数量、Close Rate数据" + } + ] + } + ] + }, + { + "scenarioName": "Log Query", + "description": "用户可以通过简单的自然语言描述其查询意图,提供SE智能体系统中的log数据,支持查询的log数据包含log基础信息(包含log标题、所属项目、所处项目阶段、相关defect ID)和log解析结果", + "agents": [ + { + "agent": "Log Query", + "description": "用户可以通过简单的自然语言描述其查询意图,提供SE智能体系统中的log数据,支持查询的log数据包含log基础信息(包含log标题、所属项目、所处项目阶段、相关defect ID)和log解析结果", + "agentSteps": [ + "通过输入Issue defect ID和查询log基础信息的意图,调用Log-Information-Inquiry查询Log的基础信息", + "通过输入Issue defect ID和查询log解析结果的意图,调用og-analysis-results查询log解析结果" + ], + "toolCallOrder": [ + { + "order": 1, + "tool": "Log-Information-Inquiry", + "description": "基于用户输入的issue defect ID,查询相关的log基础信息,包含log标题、所属项目、所处项目阶段、Log文档名及下载地址" + }, + { + "order": 2, + "tool": "Log-analysis-results", + "description": "基于用户输入的issue defect ID,查询对应的log解析结果文档内容,并将内容汇总后输出对应结论" + } + ] + } + ] + }, + { + "scenarioName": "Debugging Strategy Analysis", + "description": "能够理解用户以自然语言描述的软件问题(例如:“用户登录功能在特定情况下返回500错误”或“这个排序算法在处理大量数据时性能急剧下降”),并输出结构化的调试策略,这个调试策略可以编排为调试任务下发至测试机进行Issue的验证和排查,对于不确定或知识范围外的信息,必须明确说明“暂未掌握相关信息”或“建议查阅具体文档”,绝不能编造调试步骤或工具;若用户的问题描述过于简略,无法进行有效分析,应主动要求用户提供更多信息", + "agents": [ + { + "agent": "Debugging Strategy Analysis", + "description": "能够理解用户以自然语言描述的软件问题(例如:“用户登录功能在特定情况下返回500错误”或“这个排序算法在处理大量数据时性能急剧下降”),并输出结构化的调试策略,这个调试策略可以编排为调试任务下发至测试机进行Issue的验证和排查,对于不确定或知识范围外的信息,必须明确说明“暂未掌握相关信息”或“建议查阅具体文档”,绝不能编造调试步骤或工具;若用户的问题描述过于简略,无法进行有效分析,应主动要求用户提供更多信息", + "agentSteps": [ + "通过用户描述的Issue信息和defect ID数据,将Issue描述及log信息调用Get-Debugging-Strategy获取Issue调试策略" + ], + "toolCallOrder": [ + { + "order": 1, + "tool": "Get-Debugging-Strategy", + "description": "基于用户输入的Issue描述,对接DIKW系统获取对应Issue的调试策略" + } + ] + } + ] + } + ], + "test_engineer": [ + { + "scenarioName": "requirement_parser_agent", + "description": "负责自然语言理解与需求结构化。接收用户非标准化测试指令,精准识别任务类型、目标与约束,输出可被系统处理的结构化任务描述,是后续模型匹配与任务编排的基础。", + "agents": [ + { + "agent": "requirement_parser_agent", + "description": "负责自然语言理解与需求结构化。接收用户非标准化测试指令,精准识别任务类型、目标与约束,输出可被系统处理的结构化任务描述,是后续模型匹配与任务编排的基础。", + "agentSteps": [ + "自然语言理解:解析用户指令中的任务意图、测试类型、关键参数与约束条件", + "领域术语映射:关联测试领域专业术语与平台统一体系,确保语义一致性", + "历史上下文关联:关联用户过往会话记录,延续配置偏好与任务上下文" + ], + "toolCallOrder": [ + { + "order": 1, + "tool": "natural-language-understanding", + "description": "解析用户指令中的任务意图、测试类型、关键参数与约束条件" + }, + { + "order": 2, + "tool": "domain-terminology-mapping", + "description": "关联测试领域专业术语与平台统一体系,确保语义一致性" + }, + { + "order": 3, + "tool": "contextual-linking", + "description": "关联用户过往会话记录,延续配置偏好与任务上下文" + } + ] + } + ] + }, + { + "scenarioName": "model_matching_orchestrator_agent", + "description": "作为原子模型库与任务需求的衔接核心,负责模型检索、排序、参数配置与流程编排。基于结构化需求从库中语义匹配关联模型,按适配度、性能指标排序推荐;自动完成参数初始化与功能域配置、文件绑定,同时支持用户可视化手动调整(增删模型、修改参数、更换配置)。采用模块化设计,技能可复用、可迭代,确保模型组合方案贴合测试需求,兼容自动化与人工干预双重模式。", + "agents": [ + { + "agent": "model_matching_orchestrator_agent", + "description": "作为原子模型库与任务需求的衔接核心,负责模型检索、排序、参数配置与流程编排。基于结构化需求从库中语义匹配关联模型,按适配度、性能指标排序推荐;自动完成参数初始化与功能域配置、文件绑定,同时支持用户可视化手动调整(增删模型、修改参数、更换配置)。采用模块化设计,技能可复用、可迭代,确保模型组合方案贴合测试需求,兼容自动化与人工干预双重模式。", + "agentSteps": [ + "原子模型库检索:基于任务类型与功能描述,从原子模型库中召回相关模型", + "模型排序:按匹配度、执行成功率、资源消耗等指标排序、场景拆解执行先后顺序,推荐最优模型组合", + "参数智能配置:依据任务需求自动填充模型参数", + "配置文件关联:匹配模型对应的配置文件,建立模型与文件的精准映射关系" + ], + "toolCallOrder": [ + { + "order": 1, + "tool": "atomic-model-retrieval", + "description": "基于任务类型与功能描述,从原子模型库中召回相关模型" + }, + { + "order": 2, + "tool": "model-ranking", + "description": "按匹配度、执行成功率、资源消耗等指标排序、场景拆解执行先后顺序,推荐最优模型组合" + }, + { + "order": 3, + "tool": "intelligent-parameter-config", + "description": "依据任务需求自动填充模型参数" + }, + { + "order": 4, + "tool": "config-file-association", + "description": "匹配模型对应的配置文件,建立模型与文件的精准映射关系" + } + ] + } + ] + }, + { + "scenarioName": "vlab_task_executor_agent", + "description": "用于执行vlab任务的角色,可以识别yaml文件中的编排任务及属性。可以判断任务执行前置条件,例如机器是否属于本人、机器是否在线,可以补全任务信息,包括任务所在项目、功能域、任务名称,通过监控客户端当前已有任务进行当前任务的顺序编排。任务所属工具文件是否存在等。", + "agents": [ + { + "agent": "vlab_task_executor_agent", + "description": "用于执行vlab任务的角色,可以识别yaml文件中的编排任务及属性。可以判断任务执行前置条件,例如机器是否属于本人、机器是否在线,可以补全任务信息,包括任务所在项目、功能域、任务名称,通过监控客户端当前已有任务进行当前任务的顺序编排。任务所属工具文件是否存在等。", + "agentSteps": [ + "yaml识别与解析:识别yaml结构并解析出待执行工具列表及顺序", + "机器选择:根据当前登录用户及任务选择可执行机器列表,如有多个机器满足条件,返回机器列表用于人工选择", + "任务信息完善:完善任务项目信息、功能域信息、任务名称信息,并让用户确认和支持用户修改", + "测试机任务状态监测与队列智能调度:实时监测测试机任务执行状态,判断资源占用情况,新任务智能排队,空闲时自动调度执行", + "多客户端通信与任务投递:连接测试机客户端,传输任务数据,确保投递成功" + ], + "toolCallOrder": [ + { + "order": 1, + "tool": "yaml-parse", + "description": "识别yaml结构并解析出待执行工具列表及顺序" + }, + { + "order": 2, + "tool": "unit-change", + "description": "根据当前登录用户及任务选择可执行机器列表,如有多个机器满足条件,返回机器列表用于人工选择" + }, + { + "order": 3, + "tool": "task-metadata-completion", + "description": "完善任务项目信息、功能域信息、任务名称信息,并让用户确认和支持用户修改" + }, + { + "order": 4, + "tool": "task-status-monitor", + "description": "实时监测测试机任务执行状态,判断资源占用情况,新任务智能排队,空闲时自动调度执行" + }, + { + "order": 5, + "tool": "multi-client-communication", + "description": "连接测试机客户端,传输任务数据,确保投递成功" + } + ] + } + ] + }, + { + "scenarioName": "test_task_query_agent", + "description": "负责接收用户查询请求(支持自然语言与结构化查询),跨平台检索测试任务、工具、模型、测试报告、测试机、任务状态等全维度数据,智能解析查询意图,精准匹配数据源,对检索结果进行结构化处理与多格式展示,并支持结果导出与进一步分析操作。", + "agents": [ + { + "agent": "test_task_query_agent", + "description": "负责接收用户查询请求(支持自然语言与结构化查询),跨平台检索测试任务、工具、模型、测试报告、测试机、任务状态等全维度数据,智能解析查询意图,精准匹配数据源,对检索结果进行结构化处理与多格式展示,并支持结果导出与进一步分析操作。", + "agentSteps": [ + "自然语言查询意图解析:支持用户以自然语言提问,可查询平台中的Tool、Model、测试报告、机器信息和机器状态、任务信息和状态、用户的信息" + ], + "toolCallOrder": [ + { + "order": 1, + "tool": "natural-language-query-parsing", + "description": "支持用户以自然语言提问,可查询平台中的Tool、Model、测试报告、机器信息和机器状态、任务信息和状态、用户的信息" + } + ] + } + ] + } + ] + } +} \ No newline at end of file diff --git a/flow_scenario.json b/flow_scenario.json new file mode 100644 index 0000000..3bdd851 --- /dev/null +++ b/flow_scenario.json @@ -0,0 +1,1343 @@ +{ + "scenarios": { + "test_engineer": [ + { + "scenarioName": "自然语言查询测试任务与数据", + "description": "用户通过自然语言查询测试任务、工具、模型、机器、报告等信息,经需求解析后,由测试任务查询智能体检索并返回结构化结果。", + "userInputExamples": [ + "我最近一个月开发的工具有哪些?", + "MPFAI对应功能测试Case包含哪些模型?列表展示", + "Legion 5P AMD Y570P GN20E-SIT-SKU4-1这个机台目前借用人是谁?", + "导出最近一周 zhiwen.wu 账户下所有测试任务的执行详情", + "任务TT20251021000018里BuildIssExefile_Web版本是多少?是当前最新的版本嘛?" + ], + "participants": [ + "super_agent", + "task_plan", + "requirement_parser_agent", + "test_task_query_agent", + "personal_assistant" + ], + "flow": [ + { + "step": 1, + "phase": "任务路由与规划", + "agent": "super_agent", + "agentName": "Super Master", + "scenarioSteps": [ + { + "order": 1, + "description": "解析用户目标、范围、输入/输出与硬约束" + }, + { + "order": 2, + "description": "识别意图为自然语言查询测试任务与数据,选择 Task Plan、需求解析Agent、测试任务查询Agent" + }, + { + "order": 3, + "description": "对信息不足处提出「最少必要问题」(如时间范围、对象名称)" + }, + { + "order": 4, + "description": "移交执行权限给 Task Plan Agent" + } + ] + }, + { + "step": 2, + "phase": "任务路由与规划", + "agent": "task_plan", + "agentName": "Task Plan", + "scenarioSteps": [ + { + "order": 1, + "description": "解析用户查询参数,评估查询可行性" + }, + { + "order": 2, + "description": "输出任务拆分、依赖、分工、里程碑与交付物" + }, + { + "order": 3, + "description": "将查询任务下发给需求解析Agent" + } + ] + }, + { + "step": 3, + "phase": "需求解析", + "agent": "requirement_parser_agent", + "agentName": "Requirement Parser Agent", + "scenarioSteps": [ + { + "order": 1, + "description": "调用 natural-language-understanding:解析用户指令中的任务意图、测试类型、关键参数与约束条件" + }, + { + "order": 2, + "description": "调用 domain-terminology-mapping:将测试领域专业术语映射为平台统一体系" + }, + { + "order": 3, + "description": "调用 contextual-linking:关联用户历史会话记录,延续配置偏好与任务上下文" + }, + { + "order": 4, + "description": "将结构化查询参数返回给 Task Plan" + } + ] + }, + { + "step": 4, + "phase": "查询执行", + "agent": "task_plan", + "agentName": "Task Plan", + "scenarioSteps": [ + { + "order": 1, + "description": "接收需求解析Agent返回的结构化查询参数" + }, + { + "order": 2, + "description": "将查询参数下发给测试任务查询Agent" + } + ] + }, + { + "step": 5, + "phase": "查询执行", + "agent": "test_task_query_agent", + "agentName": "Test Task Query Agent", + "scenarioSteps": [ + { + "order": 1, + "description": "调用 natural-language-query-parsing:根据用户自然语言查询,跨平台检索Tool、Model、测试报告、机器信息/状态、任务信息/状态、用户信息等全维度数据" + }, + { + "order": 2, + "description": "将检索结果(结构化数据)返回给 Task Plan" + } + ] + }, + { + "step": 6, + "phase": "结果汇总", + "agent": "task_plan", + "agentName": "Task Plan", + "scenarioSteps": [ + { + "order": 1, + "description": "接收测试任务查询Agent返回的检索结果" + }, + { + "order": 2, + "description": "对结果进行结构化整理和总结" + }, + { + "order": 3, + "description": "移交汇总结果给 Personal Assistant" + } + ] + }, + { + "step": 7, + "phase": "报告与交付", + "agent": "personal_assistant", + "agentName": "Personal Assistant", + "scenarioSteps": [ + { + "order": 1, + "description": "接收 Task Plan 汇总结果" + }, + { + "order": 2, + "description": "生成 Markdown 格式查询报告(表格或列表形式)" + }, + { + "order": 3, + "description": "向用户展示查询结果,提供导出功能" + }, + { + "order": 4, + "description": "将执行结果反馈给 Task Plan" + } + ] + }, + { + "step": 8, + "phase": "任务闭环", + "agent": "task_plan", + "agentName": "Task Plan", + "scenarioSteps": [ + { + "order": 1, + "description": "接收 Personal Assistant 的反馈" + }, + { + "order": 2, + "description": "确认所有子任务已完成,更新任务状态为已完成" + } + ] + } + ] + }, + { + "scenarioName": "问题诊断与模型配置推荐", + "description": "用户描述测试中遇到的特定问题(如S4 WLAN YB issue),需求解析后由模型匹配与编排Agent推荐适用的测试模型及配置方案。", + "userInputExamples": [ + "我目前遇到一个S4 WLAN YB的issue,需要复制该问题,但是该测试可能会先遇到Lenovo USB Ethernet Dongle先lost的问题,为此我需要用什么模型测试,需要怎么配置该模型?" + ], + "participants": [ + "super_agent", + "task_plan", + "requirement_parser_agent", + "model_matching_orchestrator_agent", + "personal_assistant" + ], + "flow": [ + { + "step": 1, + "phase": "任务路由与规划", + "agent": "super_agent", + "agentName": "Super Master", + "scenarioSteps": [ + { + "order": 1, + "description": "解析用户目标、范围、输入/输出与硬约束" + }, + { + "order": 2, + "description": "识别意图为问题诊断与模型配置推荐,选择 Task Plan、需求解析Agent、模型匹配与编排Agent" + }, + { + "order": 3, + "description": "对信息不足处提出「最少必要问题」(如复现步骤、环境信息)" + }, + { + "order": 4, + "description": "移交执行权限给 Task Plan Agent" + } + ] + }, + { + "step": 2, + "phase": "任务路由与规划", + "agent": "task_plan", + "agentName": "Task Plan", + "scenarioSteps": [ + { + "order": 1, + "description": "解析用户问题,评估诊断可行性" + }, + { + "order": 2, + "description": "输出任务拆分、依赖、分工、里程碑与交付物" + }, + { + "order": 3, + "description": "将任务下发给需求解析Agent" + } + ] + }, + { + "step": 3, + "phase": "需求解析", + "agent": "requirement_parser_agent", + "agentName": "Requirement Parser Agent", + "scenarioSteps": [ + { + "order": 1, + "description": "调用 natural-language-understanding:解析用户描述的issue类型、测试场景、预期行为" + }, + { + "order": 2, + "description": "调用 domain-terminology-mapping:将issue中的专业术语映射为平台标准问题分类" + }, + { + "order": 3, + "description": "调用 contextual-linking:关联用户历史类似问题处理记录" + }, + { + "order": 4, + "description": "输出结构化问题描述(包含约束条件和期望输出)返回给 Task Plan" + } + ] + }, + { + "step": 4, + "phase": "模型匹配与编排", + "agent": "task_plan", + "agentName": "Task Plan", + "scenarioSteps": [ + { + "order": 1, + "description": "接收需求解析Agent输出的结构化问题描述" + }, + { + "order": 2, + "description": "将问题特征作为输入下发给模型匹配与编排Agent" + } + ] + }, + { + "step": 5, + "phase": "模型匹配与编排", + "agent": "model_matching_orchestrator_agent", + "agentName": "Model Matching Orchestrator Agent", + "scenarioSteps": [ + { + "order": 1, + "description": "调用 atomic-model-retrieval:基于任务类型与功能描述,从原子模型库中召回相关模型" + }, + { + "order": 2, + "description": "调用 model-ranking:按匹配度、执行成功率、资源消耗等指标排序,推荐最优模型组合" + }, + { + "order": 3, + "description": "调用 intelligent-parameter-config:依据任务需求自动填充模型参数" + }, + { + "order": 4, + "description": "调用 config-file-association:匹配模型对应的配置文件,建立模型与文件的精准映射关系" + }, + { + "order": 5, + "description": "输出推荐模型列表、配置参数及配置文件路径,返回给 Task Plan" + } + ] + }, + { + "step": 6, + "phase": "结果汇总", + "agent": "task_plan", + "agentName": "Task Plan", + "scenarioSteps": [ + { + "order": 1, + "description": "接收模型匹配与编排Agent返回的推荐方案" + }, + { + "order": 2, + "description": "对推荐方案进行整理和说明" + }, + { + "order": 3, + "description": "移交汇总结果给 Personal Assistant" + } + ] + }, + { + "step": 7, + "phase": "报告与交付", + "agent": "personal_assistant", + "agentName": "Personal Assistant", + "scenarioSteps": [ + { + "order": 1, + "description": "接收 Task Plan 汇总结果" + }, + { + "order": 2, + "description": "生成 Markdown 格式推荐报告(包含推荐模型、配置参数、使用说明)" + }, + { + "order": 3, + "description": "向用户展示推荐方案,并提供一键应用配置的能力" + }, + { + "order": 4, + "description": "将执行结果反馈给 Task Plan" + } + ] + }, + { + "step": 8, + "phase": "任务闭环", + "agent": "task_plan", + "agentName": "Task Plan", + "scenarioSteps": [ + { + "order": 1, + "description": "接收 Personal Assistant 的反馈" + }, + { + "order": 2, + "description": "确认所有子任务已完成,更新任务状态为已完成" + } + ] + } + ] + }, + { + "scenarioName": "创建定时测试任务或下发模型执行", + "description": "用户要求创建定时测试任务或按照模板下发模型执行(如webrelease),经需求解析、模型匹配与编排后,由vlab任务执行Agent完成实际任务下发与调度。", + "userInputExamples": [ + "帮我创建今天下午15:30执行的定时测试任务,任务为运行 MS、S4、WB、FB 四项各300圈,其他参数默认。测试机器是五码为 NS750,并且挂在 zhiwen.wu 账户下的所有机器", + "我要做webrealese,案子是Legion 5 15IRX10,请按照我之前的发起webrelease成功的模板下发模型" + ], + "participants": [ + "super_agent", + "task_plan", + "requirement_parser_agent", + "model_matching_orchestrator_agent", + "vlab_task_executor_agent", + "personal_assistant" + ], + "flow": [ + { + "step": 1, + "phase": "任务路由与规划", + "agent": "super_agent", + "agentName": "Super Master", + "scenarioSteps": [ + { + "order": 1, + "description": "解析用户目标、范围、输入/输出与硬约束" + }, + { + "order": 2, + "description": "识别意图为创建定时测试任务或下发模型执行,选择 Task Plan、需求解析Agent、模型匹配与编排Agent、vlab任务执行Agent" + }, + { + "order": 3, + "description": "对信息不足处提出「最少必要问题」(如时间、机器、参数等)" + }, + { + "order": 4, + "description": "移交执行权限给 Task Plan Agent" + } + ] + }, + { + "step": 2, + "phase": "任务路由与规划", + "agent": "task_plan", + "agentName": "Task Plan", + "scenarioSteps": [ + { + "order": 1, + "description": "解析用户任务参数,评估资源可用性" + }, + { + "order": 2, + "description": "输出任务拆分、依赖、分工、里程碑与交付物" + }, + { + "order": 3, + "description": "将任务下发给需求解析Agent" + } + ] + }, + { + "step": 3, + "phase": "需求解析", + "agent": "requirement_parser_agent", + "agentName": "Requirement Parser Agent", + "scenarioSteps": [ + { + "order": 1, + "description": "调用 natural-language-understanding:解析用户指令中的任务类型(测试/发布)、时间约束、测试项、机器条件等" + }, + { + "order": 2, + "description": "调用 domain-terminology-mapping:将用户描述中的测试项(如MS、S4、WB、FB)映射为标准任务模板" + }, + { + "order": 3, + "description": "调用 contextual-linking:关联用户历史任务模板(如webrelease成功案例)" + }, + { + "order": 4, + "description": "输出结构化任务描述(含所有参数),返回给 Task Plan" + } + ] + }, + { + "step": 4, + "phase": "模型匹配与编排", + "agent": "task_plan", + "agentName": "Task Plan", + "scenarioSteps": [ + { + "order": 1, + "description": "接收需求解析Agent输出的结构化任务描述" + }, + { + "order": 2, + "description": "将任务需求下发给模型匹配与编排Agent,获取具体的执行模型和配置" + } + ] + }, + { + "step": 5, + "phase": "模型匹配与编排", + "agent": "model_matching_orchestrator_agent", + "agentName": "Model Matching Orchestrator Agent", + "scenarioSteps": [ + { + "order": 1, + "description": "调用 atomic-model-retrieval:根据任务类型召回对应的测试模型或发布模型" + }, + { + "order": 2, + "description": "调用 model-ranking:按历史成功率、资源消耗等推荐最优模型组合" + }, + { + "order": 3, + "description": "调用 intelligent-parameter-config:自动填充任务参数(圈数、时间、机器筛选条件)" + }, + { + "order": 4, + "description": "调用 config-file-association:匹配模型对应的配置文件或模板" + }, + { + "order": 5, + "description": "输出可执行的模型组合及完整参数配置,返回给 Task Plan" + } + ] + }, + { + "step": 6, + "phase": "任务执行调度", + "agent": "task_plan", + "agentName": "Task Plan", + "scenarioSteps": [ + { + "order": 1, + "description": "接收模型匹配与编排Agent返回的可执行方案" + }, + { + "order": 2, + "description": "将方案及参数下发给vlab任务执行Agent" + } + ] + }, + { + "step": 7, + "phase": "任务执行调度", + "agent": "vlab_task_executor_agent", + "agentName": "Vlab Task Executor Agent", + "scenarioSteps": [ + { + "order": 1, + "description": "调用 yaml-parse:解析YAML格式的编排文件,获取待执行工具列表及顺序" + }, + { + "order": 2, + "description": "调用 unit-change:根据当前登录用户名及任务需求,选择可执行机器列表,若多机则返回列表供人工选择" + }, + { + "order": 3, + "description": "调用 task-metadata-completion:完善任务项目信息、功能域信息、任务名称,并让用户确认和支持修改" + }, + { + "order": 4, + "description": "调用 task-status-monitor:实时监测测试机任务执行状态,判断资源占用情况,新任务智能排队,空闲时自动调度执行" + }, + { + "order": 5, + "description": "调用 multi-client-communication:连接测试机客户端,传输任务数据,确保投递成功" + }, + { + "order": 6, + "description": "将任务投递结果(任务ID、状态、详情页地址)返回给 Task Plan" + } + ] + }, + { + "step": 8, + "phase": "结果汇总", + "agent": "task_plan", + "agentName": "Task Plan", + "scenarioSteps": [ + { + "order": 1, + "description": "接收vlab任务执行Agent返回的任务执行结果" + }, + { + "order": 2, + "description": "对执行结果进行整理和总结(任务ID、状态、链接)" + }, + { + "order": 3, + "description": "移交汇总结果给 Personal Assistant" + } + ] + }, + { + "step": 9, + "phase": "报告与交付", + "agent": "personal_assistant", + "agentName": "Personal Assistant", + "scenarioSteps": [ + { + "order": 1, + "description": "接收 Task Plan 汇总结果" + }, + { + "order": 2, + "description": "生成 Markdown 格式任务报告(任务ID、执行状态、详情页链接、预计完成时间)" + }, + { + "order": 3, + "description": "向用户展示任务创建成功信息,并提供任务跟踪链接" + }, + { + "order": 4, + "description": "可选:发送邮件通知用户任务已创建/开始执行" + }, + { + "order": 5, + "description": "将执行结果反馈给 Task Plan" + } + ] + }, + { + "step": 10, + "phase": "任务闭环", + "agent": "task_plan", + "agentName": "Task Plan", + "scenarioSteps": [ + { + "order": 1, + "description": "接收 Personal Assistant 的反馈" + }, + { + "order": 2, + "description": "确认所有子任务已完成,更新任务状态为已完成" + } + ] + } + ] + } + ], + "debugger": [ + { + "scenarioName": "Driver驱动相关知识问答", + "description": "针对与驱动程序相关的问题提供解答,涵盖驱动模型、开发规范、调试方法、常见问题排查与解决方案等知识领域", + "userInputExamples": [ + "WDF驱动模型和WDM驱动模型的主要区别是什么?", + "Windows 11上如何为自制硬件编写和安装驱动程序?", + "遇到驱动程序代码0xC0000001蓝屏错误,可能的原因有哪些?", + "如何调试一个导致系统启动时卡死的驱动程序?", + "请教一下驱动程序签名的最新要求和流程" + ], + "participants": [ + "super_agent", + "task_plan", + "Knowledge Q&A" + ], + "flow": [ + { + "step": 1, + "phase": "任务路由与规划", + "agent": "super_agent", + "agentName": "Super Master", + "scenarioSteps": [ + { + "order": 1, + "description": "解析用户目标、范围、输入/输出与硬约束" + }, + { + "order": 2, + "description": "识别意图为知识问答,选择 Task Plan、Knowledge Q&A" + }, + { + "order": 3, + "description": "对信息不足处提出「最少必要问题」" + }, + { + "order": 4, + "description": "移交执行权限给 Task Plan Agent" + } + ] + }, + { + "step": 2, + "phase": "任务路由与规划", + "agent": "task_plan", + "agentName": "Task Plan", + "scenarioSteps": [ + { + "order": 1, + "description": "分析需求,评估可行性,输出待补充信息清单" + }, + { + "order": 2, + "description": "输出任务拆分、依赖、分工、里程碑与交付物" + }, + { + "order": 3, + "description": "将结构化任务指令下发给Knowledge Q&A" + } + ] + }, + { + "step": 3, + "phase": "执行与工具调用", + "agent": "Knowledge Q&A", + "agentName": "Knowledge Q&A", + "scenarioSteps": [ + { + "order": 1, + "scenarioName": "Testing and Debugging Q&A", + "description": "提供笔记本电脑测试和调试的知识问答服务,通过用户提供的简单自然语言描述,服务可快速定位相关知识文档,提供清晰的排查步骤与修复方案等相关知识内容。" + } + ] + }, + { + "step": 4, + "phase": "任务闭环", + "agent": "task_plan", + "agentName": "Task Plan", + "scenarioSteps": [ + { + "order": 1, + "description": "接收 Knowledge Q&A 的反馈" + }, + { + "order": 2, + "description": "确认所有子任务已完成,更新任务状态为已完成" + } + ] + } + ] + }, + { + "scenarioName": "OS Feature解析", + "description": "解析用户输入的操作系统功能名称或描述,提供其技术细节、实现原理、适用场景、配置方法及与其他功能的关联性说明", + "userInputExamples": [ + "请解释一下 Windows 的 VBS (Virtualization-based Security) 功能", + "什么是 Control Flow Guard (CFG) 及其工作原理?", + "帮我解析一下 Linux 内核的 cgroups v2 的功能特性", + "Hyper-V 的嵌套虚拟化需要什么硬件支持和配置?", + "macOS 的 SIP (System Integrity Protection) 是如何工作的?" + ], + "participants": [ + "super_agent", + "task_plan", + "Knowledge Q&A" + ], + "flow": [ + { + "step": 1, + "phase": "任务路由与规划", + "agent": "super_agent", + "agentName": "Super Master", + "scenarioSteps": [ + { + "order": 1, + "description": "解析用户目标、范围、输入/输出与硬约束" + }, + { + "order": 2, + "description": "识别意图为知识问答,选择 Task Plan、Knowledge Q&A" + }, + { + "order": 3, + "description": "对信息不足处提出「最少必要问题」" + }, + { + "order": 4, + "description": "移交执行权限给 Task Plan Agent" + } + ] + }, + { + "step": 2, + "phase": "任务路由与规划", + "agent": "task_plan", + "agentName": "Task Plan", + "scenarioSteps": [ + { + "order": 1, + "description": "分析需求,评估可行性,输出待补充信息清单" + }, + { + "order": 2, + "description": "输出任务拆分、依赖、分工、里程碑与交付物" + }, + { + "order": 3, + "description": "将结构化任务指令下发给Knowledge Q&A" + } + ] + }, + { + "step": 3, + "phase": "执行与工具调用", + "agent": "Knowledge Q&A", + "agentName": "Knowledge Q&A", + "scenarioSteps": [ + { + "order": 1, + "scenarioName": "Testing and Debugging Q&A", + "description": "提供笔记本电脑测试和调试的知识问答服务,通过用户提供的简单自然语言描述,服务可快速定位相关知识文档,提供清晰的排查步骤与修复方案等相关知识内容。" + } + ] + }, + { + "step": 4, + "phase": "任务闭环", + "agent": "task_plan", + "agentName": "Task Plan", + "scenarioSteps": [ + { + "order": 1, + "description": "接收 Knowledge Q&A 的反馈" + }, + { + "order": 2, + "description": "确认所有子任务已完成,更新任务状态为已完成" + } + ] + } + ] + }, + { + "scenarioName": "WHQL Case 对应Spec提取", + "description": "根据提供的 WHQL (Windows Hardware Quality Labs) 测试用例编号或名称,自动定位并提取其对应的测试规范文档、技术要求、通过标准及关联的硬件兼容性列表", + "userInputExamples": [ + "提取测试用例 DEVICE.FUNDAMENTAL.RELIABILITY 对应的详细规范", + "帮我找一下 USBXHCI.SYS 这个 WHQL Case 相关的 Spec 要求", + "查看 DXVAHD (DXVA High Definition) 相关 WHQL 测试的规格说明", + "需要 HIDClass 驱动测试用例 DEVX.MOUSE.TEST 的认证标准", + "获取与 ACPI 电源管理测试相关的所有 Case 和其规格链接" + ], + "participants": [ + "super_agent", + "task_plan", + "Knowledge Q&A" + ], + "flow": [ + { + "step": 1, + "phase": "任务路由与规划", + "agent": "super_agent", + "agentName": "Super Master", + "scenarioSteps": [ + { + "order": 1, + "description": "解析用户目标、范围、输入/输出与硬约束" + }, + { + "order": 2, + "description": "识别意图为知识问答,选择 Task Plan、Knowledge Q&A" + }, + { + "order": 3, + "description": "对信息不足处提出「最少必要问题」" + }, + { + "order": 4, + "description": "移交执行权限给 Task Plan Agent" + } + ] + }, + { + "step": 2, + "phase": "任务路由与规划", + "agent": "task_plan", + "agentName": "Task Plan", + "scenarioSteps": [ + { + "order": 1, + "description": "分析需求,评估可行性,输出待补充信息清单" + }, + { + "order": 2, + "description": "输出任务拆分、依赖、分工、里程碑与交付物" + }, + { + "order": 3, + "description": "将结构化任务指令下发给Knowledge Q&A" + } + ] + }, + { + "step": 3, + "phase": "执行与工具调用", + "agent": "Knowledge Q&A", + "agentName": "Knowledge Q&A", + "scenarioSteps": [ + { + "order": 1, + "scenarioName": "Testing and Debugging Q&A", + "description": "提供笔记本电脑测试和调试的知识问答服务,通过用户提供的简单自然语言描述,服务可快速定位相关知识文档,提供清晰的排查步骤与修复方案等相关知识内容。" + } + ] + }, + { + "step": 4, + "phase": "任务闭环", + "agent": "task_plan", + "agentName": "Task Plan", + "scenarioSteps": [ + { + "order": 1, + "description": "接收 Knowledge Q&A 的反馈" + }, + { + "order": 2, + "description": "确认所有子任务已完成,更新任务状态为已完成" + } + ] + } + ] + }, + { + "scenarioName": "项目信息问答", + "description": "回答关于特定项目的基础信息,包括项目Phase、项目PM、项目PPM、项目BIOS Code、文档清单、项目文档链接等", + "userInputExamples": [ + "项目 Phoenix 的PPM是谁?", + "Project_A 的 OD文件下载地址是什么?", + "我想了解项目代号‘昆仑’的详细资料和当前所处Phase", + "Project_Beta 的EVT时间是什么时候?", + "查询项目 Thunder 的SW Plan文档" + ], + "participants": [ + "super_agent", + "task_plan", + "Project Query" + ], + "flow": [ + { + "step": 1, + "phase": "任务解析与规划", + "agent": "super_agent", + "agentName": "Super Master", + "scenarioSteps": [ + { + "order": 1, + "description": "解析用户目标、范围、输入/输出与硬约束" + }, + { + "order": 2, + "description": "识别意图为项目信息问答,选择 Task Plan、Project Query" + }, + { + "order": 3, + "description": "对信息不足处提出「最少必要问题」" + }, + { + "order": 4, + "description": "移交执行权限给 Task Plan Agent" + } + ] + }, + { + "step": 2, + "phase": "任务解析与规划", + "agent": "task_plan", + "agentName": "Task Plan", + "scenarioSteps": [ + { + "order": 1, + "description": "分析需求,评估可行性,输出待补充信息清单" + }, + { + "order": 2, + "description": "输出任务拆分、依赖、分工、里程碑与交付物" + }, + { + "order": 3, + "description": "将结构化任务指令下发给Project Query" + } + ] + }, + { + "step": 3, + "phase": "查询项目基础信息", + "agent": "Project Query", + "agentName": "Project Query", + "scenarioSteps": [ + { + "order": 1, + "scenarioName": "Project Query", + "description": "基于用户输入的项目名称、别名和五码信息,查询项目的基础信息,包含项目名称、项目别名、BU、PPM、BIOS Code、PJE、Phase" + } + ] + }, + { + "step": 4, + "phase": "查询项目文档信息", + "agent": "Project Query", + "agentName": "Project Query", + "scenarioSteps": [ + { + "order": 1, + "scenarioName": "Project Query", + "description": "基于用户输入的项目名称、别名、五码和文档名称信息,查询该项目的指定文档,并理解文档内的相关内容" + } + ] + }, + { + "step": 5, + "phase": "结果汇总", + "agent": "Project Query", + "agentName": "Project Query", + "scenarioSteps": [ + { + "order": 1, + "description": "合并项目基础信息和项目文档信息,进行总结输出" + } + ] + }, + { + "step": 6, + "phase": "任务闭环", + "agent": "task_plan", + "agentName": "Task Plan", + "scenarioSteps": [ + { + "order": 1, + "description": "接收 Project Query 的反馈" + }, + { + "order": 2, + "description": "确认所有子任务已完成,更新任务状态为已完成" + } + ] + } + ] + }, + { + "scenarioName": "针对问题自动推荐Debug工具或者批处理脚本,支持下载", + "description": "根据用户描述的系统或软件问题现象,自动分析并推荐适用的调试工具、诊断脚本或批处理命令,并提供工具/脚本的获取链接或直接生成简易脚本供下载", + "userInputExamples": [ + "我的程序内存泄漏了,推荐一个分析工具并告诉我怎么用,然后帮我下载", + "系统频繁蓝屏,错误代码是 0x133,有什么调试脚本可以帮我收集信息?", + "网络连接时断时续,请推荐一个诊断批处理脚本,生成下载链接", + "怀疑是注册表损坏导致服务无法启动,有什么工具可以检查,提供下载链接?", + "帮我生成一个能一键收集系统日志和进程列表的 PowerShell 脚本" + ], + "participants": [ + "super_agent", + "task_plan", + "Knowledge Q&A", + "Data Download" + ], + "flow": [ + { + "step": 1, + "phase": "任务路由与规划", + "agent": "super_agent", + "agentName": "Super Master", + "scenarioSteps": [ + { + "order": 1, + "description": "解析用户目标、范围、输入/输出与硬约束" + }, + { + "order": 2, + "description": "识别意图为知识问答和数据下载,选择 Task Plan、Knowledge Q&A、Data Download" + }, + { + "order": 3, + "description": "对信息不足处提出「最少必要问题」" + }, + { + "order": 4, + "description": "移交执行权限给 Task Plan Agent" + } + ] + }, + { + "step": 2, + "phase": "任务路由与规划", + "agent": "task_plan", + "agentName": "Task Plan", + "scenarioSteps": [ + { + "order": 1, + "description": "分析需求,评估可行性,输出待补充信息清单" + }, + { + "order": 2, + "description": "输出任务拆分、依赖、分工、里程碑与交付物" + }, + { + "order": 3, + "description": "将结构化任务指令下发给Knowledge Q&A" + } + ] + }, + { + "step": 3, + "phase": "执行与工具调用", + "agent": "Knowledge Q&A", + "agentName": "Knowledge Q&A", + "scenarioSteps": [ + { + "order": 1, + "scenarioName": "Testing and Debugging Q&A", + "description": "提供笔记本电脑测试和调试的知识问答服务,通过用户提供的简单自然语言描述,服务可快速定位相关知识文档,提供清晰的排查步骤与修复方案等相关知识内容。" + }, + { + "order": 2, + "description": "连接互联网查询相关脚本或工具信息,将生成的脚本或获取到的工具信息发送给 Data Download" + } + ] + }, + { + "step": 4, + "phase": "执行与工具调用", + "agent": "Data Download", + "agentName": "Data Download", + "scenarioSteps": [ + { + "order": 1, + "scenarioName": "Data Download", + "description": "将指定的数据或文档打包生成下载链接" + } + ] + }, + { + "step": 5, + "phase": "任务闭环", + "agent": "task_plan", + "agentName": "Task Plan", + "scenarioSteps": [ + { + "order": 1, + "description": "接收 Knowledge Q&A、Data Download 的反馈" + }, + { + "order": 2, + "description": "确认所有子任务已完成,更新任务状态为已完成" + } + ] + } + ] + }, + { + "scenarioName": "根据请求自动输出项目Issue汇总报告", + "description": "接收项目名称、时间范围、状态等筛选条件,自动从 Issue 管理系统中汇总数据,生成包含 Issue 数量、状态分布、处理人分布、趋势分析等信息的结构化报告", + "userInputExamples": [ + "生成项目 CoreLib 所有 Issue 汇总报告", + "请输出项目 Phoenix 当前所有‘Open’状态的 Issue 列表和统计", + "我需要一个关于项目 Thunder 最近一个月SW的issue的分析报告", + "汇总项目‘昆仑’的 Issue 处理情况", + "生成一份按模块(Component)分类的项目 Alpha 的 Issue 统计报告" + ], + "participants": [ + "super_agent", + "task_plan", + "Issue Query" + ], + "flow": [ + { + "step": 1, + "phase": "任务解析与规划", + "agent": "super_agent", + "agentName": "Super Master", + "scenarioSteps": [ + { + "order": 1, + "description": "解析用户目标、范围、输入/输出与硬约束" + }, + { + "order": 2, + "description": "识别意图为issue数据报告汇总,选择 Task Plan、Issue Query" + }, + { + "order": 3, + "description": "对信息不足处提出「最少必要问题」" + }, + { + "order": 4, + "description": "移交执行权限给 Task Plan Agent" + } + ] + }, + { + "step": 2, + "phase": "任务解析与规划", + "agent": "task_plan", + "agentName": "Task Plan", + "scenarioSteps": [ + { + "order": 1, + "description": "分析需求,评估可行性,输出待补充信息清单" + }, + { + "order": 2, + "description": "输出任务拆分、依赖、分工、里程碑与交付物" + }, + { + "order": 3, + "description": "将结构化任务指令下发给Issue Query" + } + ] + }, + { + "step": 3, + "phase": "执行与工具调用", + "agent": "Issue Query", + "agentName": "Issue Query", + "scenarioSteps": [ + { + "order": 1, + "scenarioName": "Issue Query", + "description": "通过输入Issue描述或defect ID,提供TDMS系统中Issue的数据查询服务,支持查询的Issue数据包含Issue基础信息(包含Issue的标题、描述、所属项目、状态、解决方案),通过输入项目名称或五码信息,查询项目Issue统计数据(包含指定项目下Issue的总数量、Open Issue数量、Close Issue数量、Close Rate数据)" + }, + { + "order": 2, + "description": "将查询的数据进行汇总分析,生成对应的数据报告" + } + ] + }, + { + "step": 4, + "phase": "任务闭环", + "agent": "task_plan", + "agentName": "Task Plan", + "scenarioSteps": [ + { + "order": 1, + "description": "接收 Knowledge Q&A、Data Download 的反馈" + }, + { + "order": 2, + "description": "确认所有子任务已完成,更新任务状态为已完成" + } + ] + } + ] + }, + { + "scenarioName": "根据Issue描述或DefectID查询呈现相关Issue的信息和log解析报告", + "description": "根据用户提供的 Issue 描述关键词或具体的缺陷 ID,从数据库中查询并呈现该 Issue 的详细信息(如标题、状态、处理人、创建/关闭时间),并自动解析、摘要相关的日志附件,形成关键时间线、错误信息和潜在原因的分析摘要", + "userInputExamples": [ + "查询缺陷 ID BUG-2024-1024 的详细信息,并分析它的日志", + "搜索所有描述中包含‘内存越界访问’的 Issue 并展示最新的一条", + "请查找并分析最近一周内与‘USB 枚举失败’相关的所有 Issue 和日志", + "根据 Defect ID 12345 获取完整的处理记录和日志解析摘要", + "帮我查找标题里有‘系统启动卡住’的 Issue,并看看日志里有什么线索" + ], + "participants": [ + "super_agent", + "task_plan", + "Issue Query", + "Log Query", + "Debugging Strategy Analysis" + ], + "flow": [ + { + "step": 1, + "phase": "任务解析与规划", + "agent": "super_agent", + "agentName": "Super Master", + "scenarioSteps": [ + { + "order": 1, + "description": "解析用户目标、范围、输入/输出与硬约束" + }, + { + "order": 2, + "description": "识别意图为issue分析,选择 Task Plan、Issue Query、Log Query、Debugging Strategy Analysis" + }, + { + "order": 3, + "description": "对信息不足处提出「最少必要问题」" + }, + { + "order": 4, + "description": "移交执行权限给 Task Plan Agent" + } + ] + }, + { + "step": 2, + "phase": "任务解析与规划", + "agent": "task_plan", + "agentName": "Task Plan", + "scenarioSteps": [ + { + "order": 1, + "description": "分析需求,评估可行性,输出待补充信息清单" + }, + { + "order": 2, + "description": "输出任务拆分、依赖、分工、里程碑与交付物" + }, + { + "order": 3, + "description": "将结构化任务指令下发给Issue Query、Log Query、Debugging Strategy Analysis" + } + ] + }, + { + "step": 3, + "phase": "相似issue查询", + "agent": "Issue Query", + "agentName": "Issue Query", + "scenarioSteps": [ + { + "order": 1, + "description": "基于用户输入的issue描述或issue defect ID,查询相似的Issue信息,包含Issue的标题、描述、所属项目、状态、解决方案" + } + ] + }, + { + "step": 4, + "phase": "issue相关log解析结果查询", + "agent": "Log Query", + "agentName": "Log Query", + "scenarioSteps": [ + { + "order": 1, + "description": "基于用户输入的issue defect ID,查询对应的log解析结果文档内容,并将内容汇总后输出对应结论" + } + ] + }, + { + "step": 5, + "phase": "issue调试策略查询", + "agent": "Debugging Strategy Analysis", + "agentName": "Debugging Strategy Analysis", + "scenarioSteps": [ + { + "order": 1, + "description": "基于用户输入的Issue描述,对接DIKW系统获取对应Issue的调试策略" + } + ] + }, + { + "step": 6, + "phase": "任务结果反馈", + "agent": "task_plan", + "agentName": "Task Plan", + "scenarioSteps": [ + { + "order": 1, + "description": "接收 Issue Query、Log Query、Debugging Strategy Analysis 的反馈" + }, + { + "order": 2, + "description": "汇总反馈内容,总结输出结论" + } + ] + }, + { + "step": 7, + "phase": "任务闭环", + "agent": "task_plan", + "agentName": "Task Plan", + "scenarioSteps": [ + { + "order": 1, + "description": "接收 task_plan 的反馈" + }, + { + "order": 2, + "description": "确认所有任务已完成,更新任务状态为已完成" + } + ] + } + ] + } + ] + } +} \ No newline at end of file diff --git a/se_debugger_tools.json b/se_debugger_tools.json deleted file mode 100644 index 5b327ba..0000000 --- a/se_debugger_tools.json +++ /dev/null @@ -1,584 +0,0 @@ -{ - "tools": [ - { - "name": "natural-language-understanding", - "description": "将用户自然语言指令转化为结构化任务意图", - "inputSchema": { - "type": "object", - "properties": { - "query": { - "type": "string", - "description": "用户自然语言指令(如“对XX模块做功能测试,要求高并发”)" - } - }, - "required": [ - "query" - ], - "additionalProperties": false - }, - "outputSchema": { - "type": "object", - "properties": { - "taskType": { - "type": "string", - "description": "任务类型" - }, - "taskTarget": { - "type": "string", - "description": "测试目标" - }, - "keyParameters": { - "type": "string", - "description": "关键参数" - }, - "constraints": { - "type": "string", - "description": "约束条件" - } - }, - "required": [ - "taskType", - "taskTarget", - "keyParameters", - "constraints" - ] - } - }, - { - "name": "domain-terminology-mapping", - "description": "将测试领域的专业术语映射为平台统一标准", - "inputSchema": { - "type": "object", - "properties": { - "term": { - "type": "string", - "description": "测试领域专业术语(如“冒烟测试”、“回归测试”)" - } - }, - "required": [ - "term" - ], - "additionalProperties": false - }, - "outputSchema": { - "type": "object", - "properties": { - "standardDefinition": { - "type": "string", - "description": "平台统一的标准术语解释" - } - }, - "required": [ - "standardDefinition" - ] - } - }, - { - "name": "contextual-linking", - "description": "关联历史会话上下文与当前配置偏好", - "inputSchema": { - "type": "object", - "properties": { - "history": { - "type": "string", - "description": "用户历史会话记录(含配置偏好、之前任务上下文)" - } - }, - "required": [ - "history" - ], - "additionalProperties": false - }, - "outputSchema": { - "type": "object", - "properties": { - "contextInfo": { - "type": "string", - "description": "当前会话的延续配置偏好及任务上下文关联信息" - } - }, - "required": [ - "contextInfo" - ] - } - }, - { - "name": "model-retrieval", - "description": "根据任务描述从库中召回相关模型", - "inputSchema": { - "type": "object", - "properties": { - "taskDesc": { - "type": "string", - "description": "任务类型与功能描述(如“需要图像分类模型”)" - } - }, - "required": [ - "taskDesc" - ], - "additionalProperties": false - }, - "outputSchema": { - "type": "object", - "properties": { - "modelList": { - "type": "array", - "items": { - "type": "object", - "properties": { - "modelType": { - "type": "string", - "description": "模型类型(原子模型、组合模型)" - }, - "level": { - "type": "string", - "description": "层级" - }, - "modelId": { - "type": "string", - "description": "模型ID" - }, - "modelName": { - "type": "string", - "description": "模型名称" - }, - "version": { - "type": "string", - "description": "版本" - }, - "status": { - "type": "string", - "description": "模型状态(启用/禁用)" - }, - "relatedToolVersion": { - "type": "string", - "description": "关联工具版本" - } - }, - "required": [ - "modelType", - "level", - "modelId", - "modelName", - "version", - "status", - "relatedToolVersion" - ] - } - } - }, - "required": [ - "modelList" - ] - } - }, - { - "name": "intelligent-parameter-config", - "description": "根据任务需求智能生成模型配置参数", - "inputSchema": { - "type": "object", - "properties": { - "requirements": { - "type": "object", - "properties": { - "loopCount": { - "type": "integer", - "description": "循环次数" - }, - "retryCount": { - "type": "integer", - "description": "重试次数" - }, - "timeout": { - "type": "integer", - "description": "超时时间" - } - }, - "required": [ - "loopCount", - "retryCount", - "timeout" - ] - } - }, - "required": [ - "requirements" - ], - "additionalProperties": false - }, - "outputSchema": { - "type": "object", - "properties": { - "config": { - "type": "object", - "properties": { - "modelName": { - "type": "string", - "description": "模型名称" - }, - "modelType": { - "type": "string", - "description": "模型类型" - }, - "configFileVersion": { - "type": "string", - "description": "配置文件版本" - }, - "errorHandling": { - "type": "string", - "description": "报错处理" - }, - "resultCheckMethod": { - "type": "string", - "description": "结果检查方式" - }, - "outputRedirect": { - "type": "string", - "description": "输出重定向" - } - }, - "required": [ - "modelName", - "modelType", - "configFileVersion", - "errorHandling", - "resultCheckMethod", - "outputRedirect" - ] - } - }, - "required": [ - "config" - ] - } - }, - { - "name": "config-file-association", - "description": "根据模型ID关联对应的配置文件路径", - "inputSchema": { - "type": "object", - "properties": { - "modelId": { - "type": "string", - "description": "选定的模型ID" - } - }, - "required": [ - "modelId" - ], - "additionalProperties": false - }, - "outputSchema": { - "type": "object", - "properties": { - "association": { - "type": "object", - "properties": { - "modelId": { - "type": "string", - "description": "模型ID" - }, - "configPath": { - "type": "string", - "description": "配置文件路径" - } - }, - "required": [ - "modelId", - "configPath" - ] - } - }, - "required": [ - "association" - ] - } - }, - { - "name": "task-parse", - "description": "解析任务步骤与工具调用顺序", - "inputSchema": { - "type": "object", - "properties": { - "taskSteps": { - "type": "array", - "description": "任务步骤" - }, - "taskInfo": { - "type": "string", - "description": "任务信息" - }, - "modelInfo": { - "type": "string", - "description": "模型信息" - }, - "toolOrder": { - "type": "array", - "description": "工具调用顺序" - }, - "machineIds": { - "type": "array", - "description": "测试机ID列表" - } - }, - "required": [ - "taskSteps", - "taskInfo", - "modelInfo", - "toolOrder", - "machineIds" - ] - }, - "outputSchema": { - "type": "object", - "properties": { - "executionList": { - "type": "array", - "description": "解析后的待执行工具列表及顺序" - } - }, - "required": [ - "executionList" - ] - } - }, - { - "name": "unit-change", - "description": "根据需求查询可用的执行机器", - "inputSchema": { - "type": "object", - "properties": { - "username": { - "type": "string", - "description": "当前登录用户名" - }, - "need": { - "type": "string", - "description": "任务需求(如“需要空闲机器”)" - } - }, - "required": [ - "username", - "need" - ], - "additionalProperties": false - }, - "outputSchema": { - "type": "object", - "properties": { - "machineList": { - "type": "array", - "items": { - "type": "object", - "properties": { - "machineName": { - "type": "string", - "description": "机器名称" - }, - "machineId": { - "type": "string", - "description": "机器ID" - }, - "status": { - "type": "string", - "description": "状态" - } - }, - "required": [ - "machineName", - "machineId", - "status" - ] - } - } - }, - "required": [ - "machineList" - ] - } - }, - { - "name": "task-metadata-completion", - "description": "补全任务元数据(项目、功能域等)", - "inputSchema": { - "type": "object", - "properties": { - "partialInfo": { - "type": "object", - "properties": { - "projectName": { - "type": "string", - "description": "项目名" - }, - "functionDomain": { - "type": "string", - "description": "功能域" - } - }, - "required": [ - "projectName", - "functionDomain" - ] - } - }, - "required": [ - "partialInfo" - ], - "additionalProperties": false - }, - "outputSchema": { - "type": "object", - "properties": { - "fullMetadata": { - "type": "object", - "properties": { - "project": { - "type": "string", - "description": "项目" - }, - "functionDomain": { - "type": "string", - "description": "功能域" - }, - "taskName": { - "type": "string", - "description": "任务名称" - } - }, - "required": [ - "project", - "functionDomain", - "taskName" - ] - } - }, - "required": [ - "fullMetadata" - ] - } - }, - { - "name": "task-status-monitor", - "description": "监控测试机或任务的执行状态", - "inputSchema": { - "type": "object", - "properties": { - "targetId": { - "type": "string", - "description": "测试机ID或任务ID" - } - }, - "required": [ - "targetId" - ], - "additionalProperties": false - }, - "outputSchema": { - "type": "object", - "properties": { - "status": { - "type": "string", - "description": "当前测试机任务执行状态" - }, - "resources": { - "type": "string", - "description": "资源占用情况" - }, - "queue": { - "type": "array", - "description": "队列中等待的任务列表" - } - }, - "required": [ - "status", - "resources", - "queue" - ] - } - }, - { - "name": "multi-client-communication", - "description": "向测试机客户端投递任务数据", - "inputSchema": { - "type": "object", - "properties": { - "clientAddr": { - "type": "string", - "description": "测试机客户端地址" - }, - "taskData": { - "type": "object", - "description": "任务数据(包含工具命令、参数)" - } - }, - "required": [ - "clientAddr", - "taskData" - ], - "additionalProperties": false - }, - "outputSchema": { - "type": "object", - "properties": { - "deliveryStatus": { - "type": "string", - "description": "投递成功/失败状态" - }, - "confirmation": { - "type": "string", - "description": "任务接收确认信息" - } - }, - "required": [ - "deliveryStatus", - "confirmation" - ] - } - }, - { - "name": "natural-language-query-parsing", - "description": "将自然语言查询转化为跨平台结构化检索", - "inputSchema": { - "type": "object", - "properties": { - "query": { - "type": "string", - "description": "用户自然语言查询(如“查一下最近失败的测试任务”)" - } - }, - "required": [ - "query" - ], - "additionalProperties": false - }, - "outputSchema": { - "type": "object", - "properties": { - "results": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "description": "数据类型(Tool、Model、测试报告等)" - }, - "data": { - "type": "object", - "description": "结构化数据内容" - } - }, - "required": [ - "type", - "data" - ] - } - } - }, - "required": [ - "results" - ] - } - } - ] -} \ No newline at end of file diff --git a/se_test_engineer_tools.json b/se_test_engineer_tools.json deleted file mode 100644 index ee87061..0000000 --- a/se_test_engineer_tools.json +++ /dev/null @@ -1,404 +0,0 @@ -{ - "tools": [ - { - "name": "knowledge-query", - "description": "按用户输入的内容意图,在知识库中检索相关内容进行汇总输出", - "inputSchema": { - "type": "object", - "properties": { - "query": { - "type": "string", - "description": "用户的输入内容" - } - }, - "required": [ - "query" - ], - "additionalProperties": false - }, - "outputSchema": { - "type": "object", - "properties": { - "content": { - "type": "string", - "description": "汇总后的知识库中的内容" - } - }, - "required": [ - "content" - ] - } - }, - { - "name": "generate-download-link", - "description": "将用户指定的数据或文档打包生成下载链接", - "inputSchema": { - "type": "object", - "properties": { - "data": { - "type": "string", - "description": "用户指定的数据或文档信息" - } - }, - "required": [ - "data" - ], - "additionalProperties": false - }, - "outputSchema": { - "type": "object", - "properties": { - "downloadLink": { - "type": "string", - "description": "生成的下载链接" - } - }, - "required": [ - "downloadLink" - ] - } - }, - { - "name": "send-mail", - "description": "将指定的邮件内容发送给指定用户", - "inputSchema": { - "type": "object", - "properties": { - "recipient": { - "type": "string", - "description": "指定接收邮件的用户" - }, - "content": { - "type": "string", - "description": "邮件内容" - } - }, - "required": [ - "recipient", - "content" - ], - "additionalProperties": false - }, - "outputSchema": { - "type": "object", - "properties": { - "result": { - "type": "string", - "description": "邮件发送的结果(success/failed)" - } - }, - "required": [ - "result" - ] - } - }, - { - "name": "project-information-query", - "description": "基于用户输入的项目名称、别名和五码信息,查询项目的基础信息,包含项目名称、项目别名、BU、PPM、BIOS Code、PJE、Phase", - "inputSchema": { - "type": "object", - "properties": { - "projectName": { - "type": "string", - "description": "项目名称" - }, - "alias": { - "type": "string", - "description": "项目别名" - }, - "code": { - "type": "string", - "description": "五码信息" - } - }, - "required": [], - "additionalProperties": false - }, - "outputSchema": { - "type": "object", - "properties": { - "projectName": { - "type": "string", - "description": "项目名称" - }, - "alias": { - "type": "string", - "description": "项目别名" - }, - "bu": { - "type": "string", - "description": "BU" - }, - "ppm": { - "type": "string", - "description": "PPM" - }, - "biosCode": { - "type": "string", - "description": "BIOS Code" - }, - "pje": { - "type": "string", - "description": "PJE" - }, - "phase": { - "type": "string", - "description": "Phase" - } - }, - "required": [ - "projectName", - "alias", - "bu", - "ppm", - "biosCode", - "pje", - "phase" - ] - } - }, - { - "name": "project-file-query", - "description": "基于用户输入的项目名称、别名、五码和文档名称信息,查询该项目的指定文档", - "inputSchema": { - "type": "object", - "properties": { - "projectName": { - "type": "string", - "description": "项目名称" - }, - "alias": { - "type": "string", - "description": "项目别名" - }, - "code": { - "type": "string", - "description": "五码信息" - }, - "documentName": { - "type": "string", - "description": "文档名称" - } - }, - "required": [], - "additionalProperties": false - }, - "outputSchema": { - "type": "object", - "properties": { - "document": { - "type": "string", - "description": "查询到的文档内容" - } - }, - "required": [ - "document" - ] - } - }, - { - "name": "issue-information-query", - "description": "基于用户输入的issue描述或issue defect ID,查询相似的Issue信息,包含Issue的标题、描述、所属项目、状态、解决方案", - "inputSchema": { - "type": "object", - "properties": { - "issueDescription": { - "type": "string", - "description": "Issue描述" - }, - "defectId": { - "type": "string", - "description": "Issue defect ID" - } - }, - "required": [], - "additionalProperties": false - }, - "outputSchema": { - "type": "object", - "properties": { - "title": { - "type": "string", - "description": "Issue的标题" - }, - "description": { - "type": "string", - "description": "Issue的描述" - }, - "project": { - "type": "string", - "description": "所属项目" - }, - "status": { - "type": "string", - "description": "状态" - }, - "solution": { - "type": "string", - "description": "解决方案" - } - }, - "required": [ - "title", - "description", - "project", - "status", - "solution" - ] - } - }, - { - "name": "issue-data-query", - "description": "基于用户输入的项目名称或项目五码,查询对应项目的Issue统计数据,包含Issue的总数量、Open Issue数量、Close Issue数量、Close Rate数据", - "inputSchema": { - "type": "object", - "properties": { - "projectName": { - "type": "string", - "description": "项目名称" - }, - "code": { - "type": "string", - "description": "项目五码" - } - }, - "required": [], - "additionalProperties": false - }, - "outputSchema": { - "type": "object", - "properties": { - "totalIssueCount": { - "type": "integer", - "description": "Issue的总数量" - }, - "openIssueCount": { - "type": "integer", - "description": "Open Issue数量" - }, - "closeIssueCount": { - "type": "integer", - "description": "Close Issue数量" - }, - "closeRate": { - "type": "number", - "description": "Close Rate数据" - } - }, - "required": [ - "totalIssueCount", - "openIssueCount", - "closeIssueCount", - "closeRate" - ] - } - }, - { - "name": "log-information-inquiry", - "description": "基于用户输入的issue defect ID,查询相关的log基础信息,包含log标题、所属项目、所处项目阶段、Log文档名及下载地址", - "inputSchema": { - "type": "object", - "properties": { - "defectId": { - "type": "string", - "description": "Issue defect ID" - } - }, - "required": [ - "defectId" - ], - "additionalProperties": false - }, - "outputSchema": { - "type": "object", - "properties": { - "logTitle": { - "type": "string", - "description": "Log标题" - }, - "project": { - "type": "string", - "description": "所属项目" - }, - "phase": { - "type": "string", - "description": "所处项目阶段" - }, - "logDocumentName": { - "type": "string", - "description": "Log文档名" - }, - "downloadUrl": { - "type": "string", - "description": "下载地址" - } - }, - "required": [ - "logTitle", - "project", - "phase", - "logDocumentName", - "downloadUrl" - ] - } - }, - { - "name": "log-analysis-results", - "description": "基于用户输入的issue defect ID,查询对应的log解析结果文档内容,并将内容汇总后输出对应结论", - "inputSchema": { - "type": "object", - "properties": { - "defectId": { - "type": "string", - "description": "Issue defect ID" - } - }, - "required": [ - "defectId" - ], - "additionalProperties": false - }, - "outputSchema": { - "type": "object", - "properties": { - "conclusion": { - "type": "string", - "description": "汇总后的结论" - } - }, - "required": [ - "conclusion" - ] - } - }, - { - "name": "get-debugging-strategy", - "description": "基于用户输入的Issue描述,对接DIKW系统获取对应Issue的调试策略", - "inputSchema": { - "type": "object", - "properties": { - "issueDescription": { - "type": "string", - "description": "Issue描述" - } - }, - "required": [ - "issueDescription" - ], - "additionalProperties": false - }, - "outputSchema": { - "type": "object", - "properties": { - "strategy": { - "type": "string", - "description": "对应的调试策略" - } - }, - "required": [ - "strategy" - ] - } - } - ] -} \ No newline at end of file