From c8e8a79709d591b116f2f1ba3924ccbb4b73d34b Mon Sep 17 00:00:00 2001 From: V-LiuShuang Date: Fri, 3 Apr 2026 14:02:51 +0800 Subject: [PATCH] add --- agent_tool.json | 1062 ++++++++++++++++++++++++++--------------------- 1 file changed, 581 insertions(+), 481 deletions(-) diff --git a/agent_tool.json b/agent_tool.json index 1d24374..be6caf5 100644 --- a/agent_tool.json +++ b/agent_tool.json @@ -1,484 +1,584 @@ { - "tools": [ - { - "name": "natural-language-understanding", - "description": "根据用户的需求制作任务计划", - "inputSchema": { - "type": "object", - "properties": { - "query": { - "type": "string", - "description": "用户的需求" - } - }, - "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": { - "query": { - "type": "string", - "description": "测试领域专业术语(如“冒烟测试”、“回归测试”)" - } - }, - "required": [ - "query" - ] - }, - "outputSchema": { - "type": "object", - "properties": { - "standardTerminology": { - "type": "string", - "description": "平台统一的标准术语" - }, - "dataModel": { - "type": "string", - "description": "对应的数据模型" - } - }, - "required": [ - "standardTerminology", - "dataModel" - ] - } - }, - { - "name": "contextual-linking", - "description": "关联用户历史会话记录,获取当前任务的配置偏好及上下文信息", - "inputSchema": { - "type": "object", - "properties": { - "query": { - "type": "string", - "description": "用户历史会话记录(含配置偏好、之前任务上下文)" - } - }, - "required": [ - "query" - ] - }, - "outputSchema": { - "type": "object", - "properties": { - "configurationPreferences": { - "type": "string", - "description": "当前会话的延续配置偏好" - }, - "contextualInformation": { - "type": "string", - "description": "任务上下文关联信息" - } - }, - "required": [ - "configurationPreferences", - "contextualInformation" - ] - } - }, - { - "name": "atomic-model-retrieval", - "description": "根据任务类型与功能描述,从原子模型库中召回相关模型", - "inputSchema": { - "type": "object", - "properties": { - "query": { - "type": "string", - "description": "任务类型与功能描述(如“需要图像分类模型”)" - } - }, - "required": [ - "query" - ] - }, - "outputSchema": { - "type": "object", - "properties": { - "modelList": { - "type": "array", - "description": "原子模型库中召回的相关模型列表", - "items": { - "type": "object", - "properties": { - "modelId": { - "type": "string", - "description": "模型ID" - }, - "modelName": { - "type": "string", - "description": "模型名称" - }, - "basicInfo": { - "type": "string", - "description": "基础信息" - } - } - } - } - }, - "required": [ - "modelList" - ] - } - }, - { - "name": "model-ranking", - "description": "根据匹配度、成功率等指标对模型列表进行排序和推荐", - "inputSchema": { - "type": "object", - "properties": { - "modelList": { - "type": "array", - "description": "待排序的模型列表" - }, - "rankingMetrics": { - "type": "string", - "description": "排序指标(匹配度、执行成功率、资源消耗等)" - } - }, - "required": [ - "modelList", - "rankingMetrics" - ] - }, - "outputSchema": { - "type": "object", - "properties": { - "recommendedCombinations": { - "type": "array", - "description": "排序后的模型组合推荐", - "items": { - "type": "object", - "properties": { - "order": { - "type": "integer" - }, - "expectedScore": { - "type": "number" - } - } - } - } - }, - "required": [ - "recommendedCombinations" - ] - } - }, - { - "name": "intelligent-parameter-config", - "description": "根据任务需求自动填充模型参数字典", - "inputSchema": { - "type": "object", - "properties": { - "taskRequirements": { - "type": "string", - "description": "任务需求参数(如batch size、学习率范围)" - } - }, - "required": [ - "taskRequirements" - ] - }, - "outputSchema": { - "type": "object", - "properties": { - "parameterDictionary": { - "type": "object", - "description": "自动填充的模型参数字典(可直接用于任务下发)" - } - }, - "required": [ - "parameterDictionary" - ] - } - }, - { - "name": "config-file-association", - "description": "根据模型ID匹配对应的配置文件路径", - "inputSchema": { - "type": "object", - "properties": { - "modelId": { - "type": "string", - "description": "选定的模型ID" - } - }, - "required": [ - "modelId" - ] - }, - "outputSchema": { - "type": "object", - "properties": { - "configFilePath": { - "type": "string", - "description": "匹配的配置文件路径" - }, - "modelFileMapping": { - "type": "string", - "description": "模型-文件映射关系" - } - }, - "required": [ - "configFilePath", - "modelFileMapping" - ] - } - }, - { - "name": "yaml-parse", - "description": "解析YAML格式的编排文件,生成待执行工具列表", - "inputSchema": { - "type": "object", - "properties": { - "yamlFile": { - "type": "string", - "description": "YAML格式的编排文件(包含任务步骤、工具调用顺序)" - } - }, - "required": [ - "yamlFile" - ] - }, - "outputSchema": { - "type": "object", - "properties": { - "toolList": { - "type": "array", - "description": "解析后的待执行工具列表及顺序(JSON格式)" - } - }, - "required": [ - "toolList" - ] - } - }, - { - "name": "unit-change", - "description": "根据用户需求查询并返回可执行机器列表", - "inputSchema": { - "type": "object", - "properties": { - "username": { - "type": "string", - "description": "当前登录用户名" - }, - "taskRequirements": { - "type": "string", - "description": "任务需求(如“需要空闲机器”)" - } - }, - "required": [ - "username", - "taskRequirements" - ] - }, - "outputSchema": { - "type": "object", - "properties": { - "machineList": { - "type": "array", - "description": "可执行机器列表(含机器名称、机器ID、状态),若多机则返回列表供人工选择", - "items": { - "type": "object", - "properties": { - "machineName": { - "type": "string" - }, - "machineId": { - "type": "string" - }, - "status": { - "type": "string" - } - } - } - } - }, - "required": [ - "machineList" - ] - } - }, - { - "name": "task-metadata-completion", - "description": "完善任务元数据并返回用户确认", - "inputSchema": { - "type": "object", - "properties": { - "partialInfo": { - "type": "string", - "description": "部分任务信息(如项目名、功能域)" - } - }, - "required": [ - "partialInfo" - ] - }, - "outputSchema": { - "type": "object", - "properties": { - "completeMetadata": { - "type": "object", - "description": "完善后的完整任务元数据", - "properties": { - "project": { - "type": "string" - }, - "domain": { - "type": "string" - }, - "taskName": { - "type": "string" - } - } - } - }, - "required": [ - "completeMetadata" - ] - } - }, - { - "name": "task-status-monitor", - "description": "监控测试机或任务的执行状态和资源占用情况", - "inputSchema": { - "type": "object", - "properties": { - "taskIdOrMachineId": { - "type": "string", - "description": "测试机ID或任务ID" - } - }, - "required": [ - "taskIdOrMachineId" - ] - }, - "outputSchema": { - "type": "object", - "properties": { - "executionStatus": { - "type": "string", - "description": "当前测试机任务执行状态" - }, - "resourceUsage": { - "type": "string", - "description": "资源占用情况" - }, - "waitingQueue": { - "type": "array", - "description": "队列中等待的任务列表" - } - }, - "required": [ - "executionStatus", - "resourceUsage", - "waitingQueue" - ] - } - }, - { - "name": "multi-client-communication", - "description": "向测试机客户端投递任务数据", - "inputSchema": { - "type": "object", - "properties": { - "clientAddress": { - "type": "string", - "description": "测试机客户端地址" - }, - "taskData": { - "type": "string", - "description": "任务数据(包含工具命令、参数)" - } - }, - "required": [ - "clientAddress", - "taskData" - ] - }, - "outputSchema": { - "type": "object", - "properties": { - "deliveryStatus": { - "type": "string", - "description": "投递成功/失败状态" - }, - "confirmationMessage": { - "type": "string", - "description": "任务接收确认信息" - } - }, - "required": [ - "deliveryStatus", - "confirmationMessage" - ] - } - }, - { - "name": "natural-language-query-parsing", - "description": "解析用户自然语言查询,检索跨平台结构化数据", - "inputSchema": { - "type": "object", - "properties": { - "query": { - "type": "string", - "description": "用户自然语言查询(如“查一下最近失败的测试任务”)" - } - }, - "required": [ - "query" - ] - }, - "outputSchema": { - "type": "object", - "properties": { - "searchResults": { - "type": "array", - "description": "跨平台检索结果(Tool、Model、测试报告、机器信息、任务状态、用户信息等结构化数据)" - } - }, - "required": [ - "searchResults" - ] - } - } - ] + "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" + }, + "name": { + "type": "string", + "description": "名称" + }, + "version": { + "type": "string", + "description": "版本" + }, + "status": { + "type": "string", + "description": "模型状态(启用/禁用)" + }, + "relatedToolVersion": { + "type": "string", + "description": "关联工具版本" + } + }, + "required": [ + "modelType", + "level", + "modelId", + "name", + "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