add
This commit is contained in:
400
agent_tool.json
400
agent_tool.json
@@ -2,13 +2,13 @@
|
||||
"tools": [
|
||||
{
|
||||
"name": "natural-language-understanding",
|
||||
"description": "根据用户的需求制作任务计划",
|
||||
"description": "将用户自然语言指令转化为结构化任务意图",
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"query": {
|
||||
"type": "string",
|
||||
"description": "用户的需求"
|
||||
"description": "用户自然语言指令(如“对XX模块做功能测试,要求高并发”)"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -25,7 +25,7 @@
|
||||
},
|
||||
"taskTarget": {
|
||||
"type": "string",
|
||||
"description": "任务目标"
|
||||
"description": "测试目标"
|
||||
},
|
||||
"keyParameters": {
|
||||
"type": "string",
|
||||
@@ -44,110 +44,126 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
[
|
||||
{
|
||||
"name": "domain-terminology-mapping",
|
||||
"description": "将测试领域专业术语映射为平台统一的标准术语及数据模型",
|
||||
"description": "将测试领域的专业术语映射为平台统一标准",
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"query": {
|
||||
"term": {
|
||||
"type": "string",
|
||||
"description": "测试领域专业术语(如“冒烟测试”、“回归测试”)"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"query"
|
||||
]
|
||||
"term"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"outputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"standardTerminology": {
|
||||
"standardDefinition": {
|
||||
"type": "string",
|
||||
"description": "平台统一的标准术语"
|
||||
},
|
||||
"dataModel": {
|
||||
"type": "string",
|
||||
"description": "对应的数据模型"
|
||||
"description": "平台统一的标准术语解释"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"standardTerminology",
|
||||
"dataModel"
|
||||
"standardDefinition"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "contextual-linking",
|
||||
"description": "关联用户历史会话记录,获取当前任务的配置偏好及上下文信息",
|
||||
"description": "关联历史会话上下文与当前配置偏好",
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"query": {
|
||||
"history": {
|
||||
"type": "string",
|
||||
"description": "用户历史会话记录(含配置偏好、之前任务上下文)"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"query"
|
||||
]
|
||||
"history"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"outputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"configurationPreferences": {
|
||||
"contextInfo": {
|
||||
"type": "string",
|
||||
"description": "当前会话的延续配置偏好"
|
||||
},
|
||||
"contextualInformation": {
|
||||
"type": "string",
|
||||
"description": "任务上下文关联信息"
|
||||
"description": "当前会话的延续配置偏好及任务上下文关联信息"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"configurationPreferences",
|
||||
"contextualInformation"
|
||||
"contextInfo"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "atomic-model-retrieval",
|
||||
"description": "根据任务类型与功能描述,从原子模型库中召回相关模型",
|
||||
"name": "model-retrieval",
|
||||
"description": "根据任务描述从库中召回相关模型",
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"query": {
|
||||
"taskDesc": {
|
||||
"type": "string",
|
||||
"description": "任务类型与功能描述(如“需要图像分类模型”)"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"query"
|
||||
]
|
||||
"taskDesc"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"outputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"modelList": {
|
||||
"type": "array",
|
||||
"description": "原子模型库中召回的相关模型列表",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"modelType": {
|
||||
"type": "string",
|
||||
"description": "模型类型(原子模型、组合模型)"
|
||||
},
|
||||
"level": {
|
||||
"type": "string",
|
||||
"description": "层级"
|
||||
},
|
||||
"modelId": {
|
||||
"type": "string",
|
||||
"description": "模型ID"
|
||||
},
|
||||
"modelName": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "模型名称"
|
||||
"description": "名称"
|
||||
},
|
||||
"basicInfo": {
|
||||
"version": {
|
||||
"type": "string",
|
||||
"description": "基础信息"
|
||||
}
|
||||
"description": "版本"
|
||||
},
|
||||
"status": {
|
||||
"type": "string",
|
||||
"description": "模型状态(启用/禁用)"
|
||||
},
|
||||
"relatedToolVersion": {
|
||||
"type": "string",
|
||||
"description": "关联工具版本"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"modelType",
|
||||
"level",
|
||||
"modelId",
|
||||
"name",
|
||||
"version",
|
||||
"status",
|
||||
"relatedToolVersion"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -156,81 +172,89 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"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": "根据任务需求自动填充模型参数字典",
|
||||
"description": "根据任务需求智能生成模型配置参数",
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"taskRequirements": {
|
||||
"type": "string",
|
||||
"description": "任务需求参数(如batch size、学习率范围)"
|
||||
"requirements": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"loopCount": {
|
||||
"type": "integer",
|
||||
"description": "循环次数"
|
||||
},
|
||||
"retryCount": {
|
||||
"type": "integer",
|
||||
"description": "重试次数"
|
||||
},
|
||||
"timeout": {
|
||||
"type": "integer",
|
||||
"description": "超时时间"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"taskRequirements"
|
||||
"loopCount",
|
||||
"retryCount",
|
||||
"timeout"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"requirements"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"outputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"parameterDictionary": {
|
||||
"config": {
|
||||
"type": "object",
|
||||
"description": "自动填充的模型参数字典(可直接用于任务下发)"
|
||||
"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": [
|
||||
"parameterDictionary"
|
||||
"modelName",
|
||||
"modelType",
|
||||
"configFileVersion",
|
||||
"errorHandling",
|
||||
"resultCheckMethod",
|
||||
"outputRedirect"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"config"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "config-file-association",
|
||||
"description": "根据模型ID匹配对应的配置文件路径",
|
||||
"description": "根据模型ID关联对应的配置文件路径",
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -241,57 +265,86 @@
|
||||
},
|
||||
"required": [
|
||||
"modelId"
|
||||
]
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"outputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"configFilePath": {
|
||||
"association": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"modelId": {
|
||||
"type": "string",
|
||||
"description": "匹配的配置文件路径"
|
||||
"description": "模型ID"
|
||||
},
|
||||
"modelFileMapping": {
|
||||
"configPath": {
|
||||
"type": "string",
|
||||
"description": "模型-文件映射关系"
|
||||
"description": "配置文件路径"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"configFilePath",
|
||||
"modelFileMapping"
|
||||
"modelId",
|
||||
"configPath"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"association"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "yaml-parse",
|
||||
"description": "解析YAML格式的编排文件,生成待执行工具列表",
|
||||
"name": "task-parse",
|
||||
"description": "解析任务步骤与工具调用顺序",
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"yamlFile": {
|
||||
"taskSteps": {
|
||||
"type": "array",
|
||||
"description": "任务步骤"
|
||||
},
|
||||
"taskInfo": {
|
||||
"type": "string",
|
||||
"description": "YAML格式的编排文件(包含任务步骤、工具调用顺序)"
|
||||
"description": "任务信息"
|
||||
},
|
||||
"modelInfo": {
|
||||
"type": "string",
|
||||
"description": "模型信息"
|
||||
},
|
||||
"toolOrder": {
|
||||
"type": "array",
|
||||
"description": "工具调用顺序"
|
||||
},
|
||||
"machineIds": {
|
||||
"type": "array",
|
||||
"description": "测试机ID列表"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"yamlFile"
|
||||
"taskSteps",
|
||||
"taskInfo",
|
||||
"modelInfo",
|
||||
"toolOrder",
|
||||
"machineIds"
|
||||
]
|
||||
},
|
||||
"outputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"toolList": {
|
||||
"executionList": {
|
||||
"type": "array",
|
||||
"description": "解析后的待执行工具列表及顺序(JSON格式)"
|
||||
"description": "解析后的待执行工具列表及顺序"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"toolList"
|
||||
"executionList"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "unit-change",
|
||||
"description": "根据用户需求查询并返回可执行机器列表",
|
||||
"description": "根据需求查询可用的执行机器",
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -299,35 +352,43 @@
|
||||
"type": "string",
|
||||
"description": "当前登录用户名"
|
||||
},
|
||||
"taskRequirements": {
|
||||
"need": {
|
||||
"type": "string",
|
||||
"description": "任务需求(如“需要空闲机器”)"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"username",
|
||||
"taskRequirements"
|
||||
]
|
||||
"need"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"outputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"machineList": {
|
||||
"type": "array",
|
||||
"description": "可执行机器列表(含机器名称、机器ID、状态),若多机则返回列表供人工选择",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"machineName": {
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"description": "机器名称"
|
||||
},
|
||||
"machineId": {
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"description": "机器ID"
|
||||
},
|
||||
"status": {
|
||||
"type": "string"
|
||||
}
|
||||
"type": "string",
|
||||
"description": "状态"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"machineName",
|
||||
"machineId",
|
||||
"status"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -338,78 +399,100 @@
|
||||
},
|
||||
{
|
||||
"name": "task-metadata-completion",
|
||||
"description": "完善任务元数据并返回用户确认",
|
||||
"description": "补全任务元数据(项目、功能域等)",
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"partialInfo": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"projectName": {
|
||||
"type": "string",
|
||||
"description": "部分任务信息(如项目名、功能域)"
|
||||
"description": "项目名"
|
||||
},
|
||||
"functionDomain": {
|
||||
"type": "string",
|
||||
"description": "功能域"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"projectName",
|
||||
"functionDomain"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"partialInfo"
|
||||
]
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"outputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"completeMetadata": {
|
||||
"fullMetadata": {
|
||||
"type": "object",
|
||||
"description": "完善后的完整任务元数据",
|
||||
"properties": {
|
||||
"project": {
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"description": "项目"
|
||||
},
|
||||
"domain": {
|
||||
"type": "string"
|
||||
"functionDomain": {
|
||||
"type": "string",
|
||||
"description": "功能域"
|
||||
},
|
||||
"taskName": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
"type": "string",
|
||||
"description": "任务名称"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"completeMetadata"
|
||||
"project",
|
||||
"functionDomain",
|
||||
"taskName"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"fullMetadata"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "task-status-monitor",
|
||||
"description": "监控测试机或任务的执行状态和资源占用情况",
|
||||
"description": "监控测试机或任务的执行状态",
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"taskIdOrMachineId": {
|
||||
"targetId": {
|
||||
"type": "string",
|
||||
"description": "测试机ID或任务ID"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"taskIdOrMachineId"
|
||||
]
|
||||
"targetId"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"outputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"executionStatus": {
|
||||
"status": {
|
||||
"type": "string",
|
||||
"description": "当前测试机任务执行状态"
|
||||
},
|
||||
"resourceUsage": {
|
||||
"resources": {
|
||||
"type": "string",
|
||||
"description": "资源占用情况"
|
||||
},
|
||||
"waitingQueue": {
|
||||
"queue": {
|
||||
"type": "array",
|
||||
"description": "队列中等待的任务列表"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"executionStatus",
|
||||
"resourceUsage",
|
||||
"waitingQueue"
|
||||
"status",
|
||||
"resources",
|
||||
"queue"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -419,19 +502,20 @@
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"clientAddress": {
|
||||
"clientAddr": {
|
||||
"type": "string",
|
||||
"description": "测试机客户端地址"
|
||||
},
|
||||
"taskData": {
|
||||
"type": "string",
|
||||
"type": "object",
|
||||
"description": "任务数据(包含工具命令、参数)"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"clientAddress",
|
||||
"clientAddr",
|
||||
"taskData"
|
||||
]
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"outputSchema": {
|
||||
"type": "object",
|
||||
@@ -440,20 +524,20 @@
|
||||
"type": "string",
|
||||
"description": "投递成功/失败状态"
|
||||
},
|
||||
"confirmationMessage": {
|
||||
"confirmation": {
|
||||
"type": "string",
|
||||
"description": "任务接收确认信息"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"deliveryStatus",
|
||||
"confirmationMessage"
|
||||
"confirmation"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "natural-language-query-parsing",
|
||||
"description": "解析用户自然语言查询,检索跨平台结构化数据",
|
||||
"description": "将自然语言查询转化为跨平台结构化检索",
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -464,21 +548,37 @@
|
||||
},
|
||||
"required": [
|
||||
"query"
|
||||
]
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"outputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"searchResults": {
|
||||
"results": {
|
||||
"type": "array",
|
||||
"description": "跨平台检索结果(Tool、Model、测试报告、机器信息、任务状态、用户信息等结构化数据)"
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"description": "数据类型(Tool、Model、测试报告等)"
|
||||
},
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "结构化数据内容"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"searchResults"
|
||||
"type",
|
||||
"data"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"results"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user