484 lines
19 KiB
JSON
484 lines
19 KiB
JSON
|
|
{
|
|||
|
|
"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"
|
|||
|
|
]
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
]
|
|||
|
|
]
|
|||
|
|
}
|