diff --git a/agent_tools.json b/agent_tools.json new file mode 100644 index 0000000..a4ca8ed --- /dev/null +++ b/agent_tools.json @@ -0,0 +1,986 @@ +{ + "debugger": [ + { + "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" + ] + } + } + ], + "test_engineer": [ + { + "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