Files
json/agent_tool.json
V-LiuShuang c8e8a79709 add
2026-04-03 14:02:51 +08:00

584 lines
12 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"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"
]
}
}
]
}