From ecf34a1a5955053406866f64f088c10bfa428d2a Mon Sep 17 00:00:00 2001 From: Welkin1027 Date: Fri, 23 Oct 2026 19:10:27 +0800 Subject: [PATCH 1/2] test(corpus): modify ran-intelligent-backup-battery-endurance modify/create input cases Signed-off-by: Welkin1027 --- .../input_case_from_data.json | 908 +++++++++-------- .../input_case_from_text.json | 299 ++++-- .../input_case_from_data.json | 910 +++++++++--------- .../input_case_from_text.json | 255 +++-- .../v1/en-US/slot.json | 15 +- .../v1/zh-CN/slot.json | 15 +- .../v1/en-US/template.md | 20 +- .../v1/zh-CN/template.md | 30 +- 8 files changed, 1353 insertions(+), 1099 deletions(-) diff --git a/a2a-t-corpus/suites/task/resources/ran-intelligent-backup-battery-endurance-create/input_case_from_data.json b/a2a-t-corpus/suites/task/resources/ran-intelligent-backup-battery-endurance-create/input_case_from_data.json index b5c1d024..c3b2d317 100644 --- a/a2a-t-corpus/suites/task/resources/ran-intelligent-backup-battery-endurance-create/input_case_from_data.json +++ b/a2a-t-corpus/suites/task/resources/ran-intelligent-backup-battery-endurance-create/input_case_from_data.json @@ -9,22 +9,80 @@ "api": "generateTaskPromptFromDataWithSchema", "args": { "data": { - "operation_type": "create", - "task_description": "基于<任务对象>、<任务上下文> 进行无线智能备电管理,达成<任务目标>中定义的备电目标,按照<预期输出>中定义的结构返回任务处理结果", - "task_target": "创建新的分级下电任务,备电保障的续航时长目标:4h", - "task_object": "站点龙岩新罗水晶澜庭-HRHH,小区460-00-2136088-511重保4G 2.3GHz,小区460-00-2136088-512重保4G 2.3GHz,小区460-00-2136088-513关键4G 2.3GHz" + "操作类型": "创建", + "任务描述": "基于<任务对象>、<任务上下文> 进行无线智能备电管理,达成<任务目标>中定义的备电目标,按照<预期输出>中定义的结构返回任务处理结果", + "任务目标": "创建新的分级下电任务,备电保障的续航时长目标:4h", + "任务对象": " - 龙岩新罗水晶澜庭-HRHH:\n - 460-00-2136088-511:重保,4G,2.3GHz\n - 460-00-2136088-512:重保,4G,2.3GHz\n - 460-00-2136088-513:关键,4G,2.3GHz\n - 龙岩新罗龙辉小区-HRHH:\n - 460-00-2134161-514:关键,5G,2.6GHz\n - 460-00-2134161-515:一般,5G,2.6GHz\n - 460-00-2134161-516:一般,5G,2.6GHz" }, "schema": { "type": "object", "properties": { - "operation_type": { "type": "string", "description": "Operation type of the wireless backup power task; allowed values are listed in the enum", "enum": ["create", "modify", "创建", "修改"] }, - "task_description": { "type": "string", "description": "Task description for the wireless intelligent backup power management task" }, - "task_target": { "type": "string", "description": "Task target; one of: Create New Tiered Power-Down Task, Create Restoration Task, Modify Tiered Power-Down Task." }, - "task_object": { "type": "string", "description": "Task object; list of sites with their cells" }, - "task_context": { "type": "string", "description": "Task context information" }, - "expected_output": { "type": "string", "description": "Expected output" } + "opType": { + "type": "string", + "description": "操作类型,取值范围:create、modify", + "enum": [ + "create", + "modify" + ] + }, + "target": { + "type": "string", + "description": "备电保障的续航时长目标,如4h、6h、8h;恢复任务时填restore", + "pattern": "^[0-9]+h$|^restore$" + }, + "siteList": { + "type": "array", + "description": "站点列表", + "items": { + "type": "object", + "properties": { + "siteName": { + "type": "string", + "description": "站点名称,如龙岩新罗水晶澜庭-HRHH" + }, + "areaList": { + "type": "array", + "description": "小区列表", + "items": { + "type": "object", + "properties": { + "areaName": { + "type": "string", + "description": "小区标识,采用CGI,如460-00-2136088-511" + }, + "level": { + "type": "string", + "description": "小区保障等级,取值范围:Critical Protection、Key、General", + "enum": [ + "Critical Protection", + "Key", + "General" + ] + }, + "tech": { + "type": "string", + "description": "小区制式,取值范围:4G(或LTE)、5G(或NR)" + }, + "freq": { + "type": "string", + "description": "小区频段,如2.3GHz、2.6GHz" + } + }, + "required": [ + "areaName" + ] + } + } + }, + "required": [ + "siteName" + ] + } + } }, - "required": ["operation_type", "task_description"] + "required": [ + "opType" + ] }, "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1" } @@ -35,327 +93,282 @@ "schema": { "type": "object", "properties": { - "operation_type": { "type": "string", "description": "Operation type of the wireless backup power task; allowed values are listed in the enum", "enum": ["create", "modify", "创建", "修改"] }, - "task_description": { "type": "string", "description": "Task description for the wireless intelligent backup power management task" }, - "task_target": { "type": "string", "description": "Task target" }, - "task_object": { "type": "string", "description": "Task object" }, - "task_context": { "type": "string", "description": "Task context information" }, - "expected_output": { "type": "string", "description": "Expected output" } + "opType": { + "type": "string", + "description": "操作类型,取值范围:create、modify", + "enum": [ + "create", + "modify" + ] + }, + "target": { + "type": "string", + "description": "备电保障的续航时长目标,如4h、6h、8h;恢复任务时填restore", + "pattern": "^[0-9]+h$|^restore$" + }, + "siteList": { + "type": "array", + "description": "站点列表", + "items": { + "type": "object", + "properties": { + "siteName": { + "type": "string", + "description": "站点名称,如龙岩新罗水晶澜庭-HRHH" + }, + "areaList": { + "type": "array", + "description": "小区列表", + "items": { + "type": "object", + "properties": { + "areaName": { + "type": "string", + "description": "小区标识,采用CGI,如460-00-2136088-511" + }, + "level": { + "type": "string", + "description": "小区保障等级,取值范围:Critical Protection、Key、General", + "enum": [ + "Critical Protection", + "Key", + "General" + ] + }, + "tech": { + "type": "string", + "description": "小区制式,取值范围:4G(或LTE)、5G(或NR)" + }, + "freq": { + "type": "string", + "description": "小区频段,如2.3GHz、2.6GHz" + } + }, + "required": [ + "areaName" + ] + } + } + }, + "required": [ + "siteName" + ] + } + } }, - "required": ["operation_type", "task_description"] + "required": [ + "opType" + ] }, "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1", - "promptText": { "$fromStep": 1, "$field": "promptText" } + "promptText": { + "$fromStep": 1, + "$field": "promptText" + } } } ], "expected": [ - { "result": "success", "data": {}, "error": { "errCode": "", "errMessage": "" } }, - { "result": "success", "data": {}, "error": { "errCode": "", "errMessage": "" } } - ] - }, - { - "id": "TC00000002", - "caseDimension": "01-意图清晰参数完整", - "caseDesc": "data创建档-多站点+混合制式+多保障等级", - "caseCategory": "正常", - "input": [ - { - "api": "generateTaskPromptFromDataWithSchema", - "args": { - "data": { - "operation_type": "create", - "task_description": "基于<任务对象>、<任务上下文> 进行无线智能备电管理,达成<任务目标>中定义的备电目标,按照<预期输出>中定义的结构返回任务处理结果", - "task_target": "创建新的分级下电任务,备电保障的续航时长目标:4h", - "task_object": "站点龙岩新罗水晶澜庭-HRHH,小区460-00-2136088-511重保4G 2.3GHz,小区460-00-2136088-513关键4G 2.3GHz;站点龙岩新罗龙辉小区-HRHH,小区460-00-2134161-514关键5G 2.6GHz,小区460-00-2134161-515一般5G 2.6GHz" - }, - "schema": { - "type": "object", - "properties": { - "operation_type": { "type": "string", "description": "Operation type", "enum": ["create", "modify", "创建", "修改"] }, - "task_description": { "type": "string", "description": "Task description" }, - "task_target": { "type": "string", "description": "Task target" }, - "task_object": { "type": "string", "description": "Task object" }, - "task_context": { "type": "string", "description": "Task context" }, - "expected_output": { "type": "string", "description": "Expected output" } - }, - "required": ["operation_type", "task_description"] - }, - "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1" - } - }, - { - "api": "validateTaskPromptAndDataFilling", - "args": { - "schema": { - "type": "object", - "properties": { - "operation_type": { "type": "string", "description": "Operation type", "enum": ["create", "modify", "创建", "修改"] }, - "task_description": { "type": "string", "description": "Task description" }, - "task_target": { "type": "string", "description": "Task target" }, - "task_object": { "type": "string", "description": "Task object" }, - "task_context": { "type": "string", "description": "Task context" }, - "expected_output": { "type": "string", "description": "Expected output" } - }, - "required": ["operation_type", "task_description"] - }, - "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1", - "promptText": { "$fromStep": 1, "$field": "promptText" } - } - } - ], - "expected": [ - { "result": "success", "data": {}, "error": { "errCode": "", "errMessage": "" } }, - { "result": "success", "data": {}, "error": { "errCode": "", "errMessage": "" } } - ] - }, - { - "id": "TC00000003", - "caseDimension": "01-意图清晰参数完整", - "caseDesc": "data创建档-创建恢复任务(回退配置)", - "caseCategory": "正常", - "input": [ - { - "api": "generateTaskPromptFromDataWithSchema", - "args": { - "data": { - "operation_type": "create", - "task_description": "基于<任务对象>、<任务上下文> 进行无线智能备电管理,达成<任务目标>中定义的备电目标,按照<预期输出>中定义的结构返回任务处理结果", - "task_target": "创建恢复任务,回退无线智能备电配置", - "task_object": "站点龙岩新罗水晶澜庭-HRHH" - }, - "schema": { - "type": "object", - "properties": { - "operation_type": { "type": "string", "description": "Operation type", "enum": ["create", "modify", "创建", "修改"] }, - "task_description": { "type": "string", "description": "Task description" }, - "task_target": { "type": "string", "description": "Task target" }, - "task_object": { "type": "string", "description": "Task object" }, - "task_context": { "type": "string", "description": "Task context" }, - "expected_output": { "type": "string", "description": "Expected output" } - }, - "required": ["operation_type", "task_description"] - }, - "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1" - } - }, - { - "api": "validateTaskPromptAndDataFilling", - "args": { - "schema": { - "type": "object", - "properties": { - "operation_type": { "type": "string", "description": "Operation type", "enum": ["create", "modify", "创建", "修改"] }, - "task_description": { "type": "string", "description": "Task description" }, - "task_target": { "type": "string", "description": "Task target" }, - "task_object": { "type": "string", "description": "Task object" }, - "task_context": { "type": "string", "description": "Task context" }, - "expected_output": { "type": "string", "description": "Expected output" } - }, - "required": ["operation_type", "task_description"] - }, - "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1", - "promptText": { "$fromStep": 1, "$field": "promptText" } - } - } - ], - "expected": [ - { "result": "success", "data": {}, "error": { "errCode": "", "errMessage": "" } }, - { "result": "success", "data": {}, "error": { "errCode": "", "errMessage": "" } } - ] - }, - { - "id": "TC00000004", - "caseDimension": "01-意图清晰参数完整", - "caseDesc": "data创建档-仅站点名称(无小区列表,选填放行)", - "caseCategory": "正常", - "input": [ { - "api": "generateTaskPromptFromDataWithSchema", - "args": { - "data": { - "operation_type": "create", - "task_description": "基于<任务对象>、<任务上下文> 进行无线智能备电管理,达成<任务目标>中定义的备电目标,按照<预期输出>中定义的结构返回任务处理结果", - "task_target": "创建新的分级下电任务,备电保障的续航时长目标:8h", - "task_object": "站点龙岩新罗水晶澜庭-HRHH" - }, - "schema": { - "type": "object", - "properties": { - "operation_type": { "type": "string", "description": "Operation type", "enum": ["create", "modify", "创建", "修改"] }, - "task_description": { "type": "string", "description": "Task description" }, - "task_target": { "type": "string", "description": "Task target" }, - "task_object": { "type": "string", "description": "Task object" }, - "task_context": { "type": "string", "description": "Task context" }, - "expected_output": { "type": "string", "description": "Expected output" } - }, - "required": ["operation_type", "task_description"] - }, - "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1" + "result": "success", + "data": {}, + "error": { + "errCode": "", + "errMessage": "" } }, { - "api": "validateTaskPromptAndDataFilling", - "args": { - "schema": { - "type": "object", - "properties": { - "operation_type": { "type": "string", "description": "Operation type", "enum": ["create", "modify", "创建", "修改"] }, - "task_description": { "type": "string", "description": "Task description" }, - "task_target": { "type": "string", "description": "Task target" }, - "task_object": { "type": "string", "description": "Task object" }, - "task_context": { "type": "string", "description": "Task context" }, - "expected_output": { "type": "string", "description": "Expected output" } - }, - "required": ["operation_type", "task_description"] - }, - "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1", - "promptText": { "$fromStep": 1, "$field": "promptText" } + "result": "success", + "data": {}, + "error": { + "errCode": "", + "errMessage": "" } } - ], - "expected": [ - { "result": "success", "data": {}, "error": { "errCode": "", "errMessage": "" } }, - { "result": "success", "data": {}, "error": { "errCode": "", "errMessage": "" } } ] }, { - "id": "TC00000005", - "caseDimension": "01-意图清晰参数完整", - "caseDesc": "data创建档-5G制式站点+长续航目标12h", - "caseCategory": "正常", + "id": "TC00000002", + "caseDimension": "02-关键信息缺失", + "caseDesc": "data创建缺少任务描述和任务对象,required应拦截", + "caseCategory": "异常", "input": [ { "api": "generateTaskPromptFromDataWithSchema", "args": { "data": { - "operation_type": "create", - "task_description": "基于<任务对象>、<任务上下文> 进行无线智能备电管理,达成<任务目标>中定义的备电目标,按照<预期输出>中定义的结构返回任务处理结果", - "task_target": "创建新的分级下电任务,备电保障的续航时长目标:12h", - "task_object": "站点龙岩新罗龙辉小区-HRHH,小区460-00-2134161-514关键5G 2.6GHz,小区460-00-2134161-515一般5G 2.6GHz,小区460-00-2134161-516一般5G 2.6GHz" + "操作类型": "创建", + "任务目标": "创建新的分级下电任务,备电保障的续航时长目标:4h" }, "schema": { "type": "object", "properties": { - "operation_type": { "type": "string", "description": "Operation type", "enum": ["create", "modify", "创建", "修改"] }, - "task_description": { "type": "string", "description": "Task description" }, - "task_target": { "type": "string", "description": "Task target" }, - "task_object": { "type": "string", "description": "Task object" }, - "task_context": { "type": "string", "description": "Task context" }, - "expected_output": { "type": "string", "description": "Expected output" } + "opType": { + "type": "string", + "description": "操作类型,取值范围:create、modify", + "enum": [ + "create", + "modify" + ] + }, + "target": { + "type": "string", + "description": "备电保障的续航时长目标,如4h、6h、8h;恢复任务时填restore", + "pattern": "^[0-9]+h$|^restore$" + }, + "siteList": { + "type": "array", + "description": "站点列表", + "items": { + "type": "object", + "properties": { + "siteName": { + "type": "string", + "description": "站点名称,如龙岩新罗水晶澜庭-HRHH" + }, + "areaList": { + "type": "array", + "description": "小区列表", + "items": { + "type": "object", + "properties": { + "areaName": { + "type": "string", + "description": "小区标识,采用CGI,如460-00-2136088-511" + }, + "level": { + "type": "string", + "description": "小区保障等级,取值范围:Critical Protection、Key、General", + "enum": [ + "Critical Protection", + "Key", + "General" + ] + }, + "tech": { + "type": "string", + "description": "小区制式,取值范围:4G(或LTE)、5G(或NR)" + }, + "freq": { + "type": "string", + "description": "小区频段,如2.3GHz、2.6GHz" + } + }, + "required": [ + "areaName" + ] + } + } + }, + "required": [ + "siteName" + ] + } + } }, - "required": ["operation_type", "task_description"] + "required": [ + "opType" + ] }, "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1" } - }, - { - "api": "validateTaskPromptAndDataFilling", - "args": { - "schema": { - "type": "object", - "properties": { - "operation_type": { "type": "string", "description": "Operation type", "enum": ["create", "modify", "创建", "修改"] }, - "task_description": { "type": "string", "description": "Task description" }, - "task_target": { "type": "string", "description": "Task target" }, - "task_object": { "type": "string", "description": "Task object" }, - "task_context": { "type": "string", "description": "Task context" }, - "expected_output": { "type": "string", "description": "Expected output" } - }, - "required": ["operation_type", "task_description"] - }, - "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1", - "promptText": { "$fromStep": 1, "$field": "promptText" } - } } ], "expected": [ - { "result": "success", "data": {}, "error": { "errCode": "", "errMessage": "" } }, - { "result": "success", "data": {}, "error": { "errCode": "", "errMessage": "" } } - ] - }, - { - "id": "TC00000006", - "caseDimension": "01-意图清晰参数完整", - "caseDesc": "data创建档-带任务上下文(背景事件信息)", - "caseCategory": "正常", - "input": [ - { - "api": "generateTaskPromptFromDataWithSchema", - "args": { - "data": { - "operation_type": "create", - "task_description": "基于<任务对象>、<任务上下文> 进行无线智能备电管理,达成<任务目标>中定义的备电目标,按照<预期输出>中定义的结构返回任务处理结果", - "task_target": "创建新的分级下电任务,备电保障的续航时长目标:6h", - "task_object": "站点龙岩新罗水晶澜庭-HRHH,小区460-00-2136088-511重保4G 2.3GHz,小区460-00-2136088-513关键4G 2.3GHz", - "task_context": "市电停电,预计恢复时间6小时,需要保障重保小区不断电" - }, - "schema": { - "type": "object", - "properties": { - "operation_type": { "type": "string", "description": "Operation type", "enum": ["create", "modify", "创建", "修改"] }, - "task_description": { "type": "string", "description": "Task description" }, - "task_target": { "type": "string", "description": "Task target" }, - "task_object": { "type": "string", "description": "Task object" }, - "task_context": { "type": "string", "description": "Task context" }, - "expected_output": { "type": "string", "description": "Expected output" } - }, - "required": ["operation_type", "task_description"] - }, - "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1" - } - }, { - "api": "validateTaskPromptAndDataFilling", - "args": { - "schema": { - "type": "object", - "properties": { - "operation_type": { "type": "string", "description": "Operation type", "enum": ["create", "modify", "创建", "修改"] }, - "task_description": { "type": "string", "description": "Task description" }, - "task_target": { "type": "string", "description": "Task target" }, - "task_object": { "type": "string", "description": "Task object" }, - "task_context": { "type": "string", "description": "Task context" }, - "expected_output": { "type": "string", "description": "Expected output" } - }, - "required": ["operation_type", "task_description"] - }, - "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1", - "promptText": { "$fromStep": 1, "$field": "promptText" } + "result": "error", + "data": {}, + "error": { + "errCode": "slot.not_provided", + "errMessage": "" } } - ], - "expected": [ - { "result": "success", "data": {}, "error": { "errCode": "", "errMessage": "" } }, - { "result": "success", "data": {}, "error": { "errCode": "", "errMessage": "" } } ] }, { - "id": "TC00000007", - "caseDimension": "01-意图清晰参数完整", - "caseDesc": "data创建档-多站点+全部保障等级(重保+关键+一般)", - "caseCategory": "正常", + "id": "TC00000003", + "caseDimension": "03-意图描述模糊", + "caseDesc": "data创建-续航目标口语化(让备电撑得久一点),生成放行、服务端拒绝", + "caseCategory": "异常", "input": [ { "api": "generateTaskPromptFromDataWithSchema", "args": { "data": { - "operation_type": "create", - "task_description": "基于<任务对象>、<任务上下文> 进行无线智能备电管理,达成<任务目标>中定义的备电目标,按照<预期输出>中定义的结构返回任务处理结果", - "task_target": "创建新的分级下电任务,备电保障的续航时长目标:4h", - "task_object": "站点龙岩新罗水晶澜庭-HRHH,小区460-00-2136088-511重保4G 2.3GHz,小区460-00-2136088-512重保4G 2.3GHz,小区460-00-2136088-513关键4G 2.3GHz;站点龙岩新罗龙辉小区-HRHH,小区460-00-2134161-514关键5G 2.6GHz,小区460-00-2134161-515一般5G 2.6GHz,小区460-00-2134161-516一般5G 2.6GHz" + "操作类型": "创建", + "任务描述": "基于<任务对象>、<任务上下文> 进行无线智能备电管理,达成<任务目标>中定义的备电目标,按照<预期输出>中定义的结构返回任务处理结果", + "任务目标": "让备电撑得久一点", + "任务对象": " - 龙岩新罗水晶澜庭-HRHH:" }, "schema": { "type": "object", "properties": { - "operation_type": { "type": "string", "description": "Operation type", "enum": ["create", "modify", "创建", "修改"] }, - "task_description": { "type": "string", "description": "Task description" }, - "task_target": { "type": "string", "description": "Task target" }, - "task_object": { "type": "string", "description": "Task object" }, - "task_context": { "type": "string", "description": "Task context" }, - "expected_output": { "type": "string", "description": "Expected output" } + "opType": { + "type": "string", + "description": "操作类型,取值范围:create、modify", + "enum": [ + "create", + "modify" + ] + }, + "target": { + "type": "string", + "description": "备电保障的续航时长目标,如4h、6h、8h;恢复任务时填restore", + "pattern": "^[0-9]+h$|^restore$" + }, + "siteList": { + "type": "array", + "description": "站点列表", + "items": { + "type": "object", + "properties": { + "siteName": { + "type": "string", + "description": "站点名称,如龙岩新罗水晶澜庭-HRHH" + }, + "areaList": { + "type": "array", + "description": "小区列表", + "items": { + "type": "object", + "properties": { + "areaName": { + "type": "string", + "description": "小区标识,采用CGI,如460-00-2136088-511" + }, + "level": { + "type": "string", + "description": "小区保障等级,取值范围:Critical Protection、Key、General", + "enum": [ + "Critical Protection", + "Key", + "General" + ] + }, + "tech": { + "type": "string", + "description": "小区制式,取值范围:4G(或LTE)、5G(或NR)" + }, + "freq": { + "type": "string", + "description": "小区频段,如2.3GHz、2.6GHz" + } + }, + "required": [ + "areaName" + ] + } + } + }, + "required": [ + "siteName" + ] + } + } }, - "required": ["operation_type", "task_description"] + "required": [ + "opType" + ] }, "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1" } @@ -366,151 +379,103 @@ "schema": { "type": "object", "properties": { - "operation_type": { "type": "string", "description": "Operation type", "enum": ["create", "modify", "创建", "修改"] }, - "task_description": { "type": "string", "description": "Task description" }, - "task_target": { "type": "string", "description": "Task target" }, - "task_object": { "type": "string", "description": "Task object" }, - "task_context": { "type": "string", "description": "Task context" }, - "expected_output": { "type": "string", "description": "Expected output" } + "opType": { + "type": "string", + "description": "操作类型,取值范围:create、modify", + "enum": [ + "create", + "modify" + ] + }, + "target": { + "type": "string", + "description": "备电保障的续航时长目标,如4h、6h、8h;恢复任务时填restore", + "pattern": "^[0-9]+h$|^restore$" + }, + "siteList": { + "type": "array", + "description": "站点列表", + "items": { + "type": "object", + "properties": { + "siteName": { + "type": "string", + "description": "站点名称,如龙岩新罗水晶澜庭-HRHH" + }, + "areaList": { + "type": "array", + "description": "小区列表", + "items": { + "type": "object", + "properties": { + "areaName": { + "type": "string", + "description": "小区标识,采用CGI,如460-00-2136088-511" + }, + "level": { + "type": "string", + "description": "小区保障等级,取值范围:Critical Protection、Key、General", + "enum": [ + "Critical Protection", + "Key", + "General" + ] + }, + "tech": { + "type": "string", + "description": "小区制式,取值范围:4G(或LTE)、5G(或NR)" + }, + "freq": { + "type": "string", + "description": "小区频段,如2.3GHz、2.6GHz" + } + }, + "required": [ + "areaName" + ] + } + } + }, + "required": [ + "siteName" + ] + } + } }, - "required": ["operation_type", "task_description"] + "required": [ + "opType" + ] }, "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1", - "promptText": { "$fromStep": 1, "$field": "promptText" } + "promptText": { + "$fromStep": 1, + "$field": "promptText" + } } } ], "expected": [ - { "result": "success", "data": {}, "error": { "errCode": "", "errMessage": "" } }, - { "result": "success", "data": {}, "error": { "errCode": "", "errMessage": "" } } - ] - }, - { - "id": "TC00000008", - "caseDimension": "01-意图清晰参数完整", - "caseDesc": "data创建档-含用户指标信息(常住用户+RRC用户+流量+话务)", - "caseCategory": "正常", - "input": [ { - "api": "generateTaskPromptFromDataWithSchema", - "args": { - "data": { - "operation_type": "create", - "task_description": "基于<任务对象>、<任务上下文> 进行无线智能备电管理,达成<任务目标>中定义的备电目标,按照<预期输出>中定义的结构返回任务处理结果", - "task_target": "创建新的分级下电任务,备电保障的续航时长目标:4h", - "task_object": "站点龙岩新罗水晶澜庭-HRHH,小区460-00-2136088-511重保4G 2.3GHz,常住用户326户,当前RRC用户216户,流量12.6GB,话务72Erl;小区460-00-2136088-513关键4G 2.3GHz,常住用户150户,当前RRC用户80户,流量5.2GB,话务30Erl" - }, - "schema": { - "type": "object", - "properties": { - "operation_type": { "type": "string", "description": "Operation type", "enum": ["create", "modify", "创建", "修改"] }, - "task_description": { "type": "string", "description": "Task description" }, - "task_target": { "type": "string", "description": "Task target" }, - "task_object": { "type": "string", "description": "Task object" }, - "task_context": { "type": "string", "description": "Task context" }, - "expected_output": { "type": "string", "description": "Expected output" } - }, - "required": ["operation_type", "task_description"] - }, - "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1" + "result": "success", + "data": {}, + "error": { + "errCode": "", + "errMessage": "" } }, { - "api": "validateTaskPromptAndDataFilling", - "args": { - "schema": { - "type": "object", - "properties": { - "operation_type": { "type": "string", "description": "Operation type", "enum": ["create", "modify", "创建", "修改"] }, - "task_description": { "type": "string", "description": "Task description" }, - "task_target": { "type": "string", "description": "Task target" }, - "task_object": { "type": "string", "description": "Task object" }, - "task_context": { "type": "string", "description": "Task context" }, - "expected_output": { "type": "string", "description": "Expected output" } - }, - "required": ["operation_type", "task_description"] - }, - "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1", - "promptText": { "$fromStep": 1, "$field": "promptText" } - } - } - ], - "expected": [ - { "result": "success", "data": {}, "error": { "errCode": "", "errMessage": "" } }, - { "result": "success", "data": {}, "error": { "errCode": "", "errMessage": "" } } - ] - }, - { - "id": "TC00000009", - "caseDimension": "04-关键信息缺失", - "caseDesc": "data创建缺少任务描述,required应拦截", - "caseCategory": "异常", - "input": [ - { - "api": "generateTaskPromptFromDataWithSchema", - "args": { - "data": { - "operation_type": "create", - "task_target": "创建新的分级下电任务,备电保障的续航时长目标:4h", - "task_object": "站点龙岩新罗水晶澜庭-HRHH" - }, - "schema": { - "type": "object", - "properties": { - "operation_type": { "type": "string", "description": "Operation type", "enum": ["create", "modify", "创建", "修改"] }, - "task_description": { "type": "string", "description": "Task description" }, - "task_target": { "type": "string", "description": "Task target" }, - "task_object": { "type": "string", "description": "Task object" }, - "task_context": { "type": "string", "description": "Task context" }, - "expected_output": { "type": "string", "description": "Expected output" } - }, - "required": ["operation_type", "task_description"] - }, - "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1" - } - } - ], - "expected": [ - { "result": "error", "data": {}, "error": { "errCode": "slot.not_provided", "errMessage": "" } } - ] - }, - { - "id": "TC00000010", - "caseDimension": "04-关键信息缺失", - "caseDesc": "data创建缺少操作类型,LLM从task_target推断补值", - "caseCategory": "边界", - "input": [ - { - "api": "generateTaskPromptFromDataWithSchema", - "args": { - "data": { - "task_description": "基于<任务对象>、<任务上下文> 进行无线智能备电管理,达成<任务目标>中定义的备电目标,按照<预期输出>中定义的结构返回任务处理结果", - "task_target": "创建新的分级下电任务,备电保障的续航时长目标:4h", - "task_object": "站点龙岩新罗水晶澜庭-HRHH" - }, - "schema": { - "type": "object", - "properties": { - "operation_type": { "type": "string", "description": "Operation type", "enum": ["create", "modify", "创建", "修改"] }, - "task_description": { "type": "string", "description": "Task description" }, - "task_target": { "type": "string", "description": "Task target" }, - "task_object": { "type": "string", "description": "Task object" }, - "task_context": { "type": "string", "description": "Task context" }, - "expected_output": { "type": "string", "description": "Expected output" } - }, - "required": ["operation_type", "task_description"] - }, - "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1" + "result": "error", + "data": {}, + "error": { + "errCode": "negotiation.semantic_rejected", + "errMessage": "" } } - ], - "expected": [ - { "result": "success", "data": {}, "error": { "errCode": "", "errMessage": "" } } ] }, { - "id": "TC00000011", - "caseDimension": "06-值域违规检测", + "id": "TC00000004", + "caseDimension": "04-值域违规检测", "caseDesc": "data创建操作类型\"delete\"违规", "caseCategory": "异常", "input": [ @@ -518,62 +483,93 @@ "api": "generateTaskPromptFromDataWithSchema", "args": { "data": { - "operation_type": "delete", - "task_description": "基于<任务对象>、<任务上下文> 进行无线智能备电管理,达成<任务目标>中定义的备电目标,按照<预期输出>中定义的结构返回任务处理结果", - "task_target": "创建新的分级下电任务,备电保障的续航时长目标:4h" + "操作类型": "delete", + "任务描述": "基于<任务对象>、<任务上下文> 进行无线智能备电管理,达成<任务目标>中定义的备电目标,按照<预期输出>中定义的结构返回任务处理结果", + "任务目标": "创建新的分级下电任务,备电保障的续航时长目标:4h" }, "schema": { "type": "object", "properties": { - "operation_type": { "type": "string", "description": "Operation type", "enum": ["create", "modify", "创建", "修改"] }, - "task_description": { "type": "string", "description": "Task description" }, - "task_target": { "type": "string", "description": "Task target" }, - "task_object": { "type": "string", "description": "Task object" }, - "task_context": { "type": "string", "description": "Task context" }, - "expected_output": { "type": "string", "description": "Expected output" } + "opType": { + "type": "string", + "description": "操作类型,取值范围:create、modify", + "enum": [ + "create", + "modify" + ] + }, + "target": { + "type": "string", + "description": "备电保障的续航时长目标,如4h、6h、8h;恢复任务时填restore", + "pattern": "^[0-9]+h$|^restore$" + }, + "siteList": { + "type": "array", + "description": "站点列表", + "items": { + "type": "object", + "properties": { + "siteName": { + "type": "string", + "description": "站点名称,如龙岩新罗水晶澜庭-HRHH" + }, + "areaList": { + "type": "array", + "description": "小区列表", + "items": { + "type": "object", + "properties": { + "areaName": { + "type": "string", + "description": "小区标识,采用CGI,如460-00-2136088-511" + }, + "level": { + "type": "string", + "description": "小区保障等级,取值范围:Critical Protection、Key、General", + "enum": [ + "Critical Protection", + "Key", + "General" + ] + }, + "tech": { + "type": "string", + "description": "小区制式,取值范围:4G(或LTE)、5G(或NR)" + }, + "freq": { + "type": "string", + "description": "小区频段,如2.3GHz、2.6GHz" + } + }, + "required": [ + "areaName" + ] + } + } + }, + "required": [ + "siteName" + ] + } + } }, - "required": ["operation_type", "task_description"] + "required": [ + "opType" + ] }, "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1" } } ], "expected": [ - { "result": "error", "data": {}, "error": { "errCode": "slot.constraint_violated", "errMessage": "" } } - ] - }, - { - "id": "TC00000012", - "caseDimension": "06-值域违规检测", - "caseDesc": "data创建操作类型\"export\"违规", - "caseCategory": "异常", - "input": [ { - "api": "generateTaskPromptFromDataWithSchema", - "args": { - "data": { - "operation_type": "export", - "task_description": "基于<任务对象>、<任务上下文> 进行无线智能备电管理,达成<任务目标>中定义的备电目标,按照<预期输出>中定义的结构返回任务处理结果", - "task_target": "创建新的分级下电任务,备电保障的续航时长目标:4h" - }, - "schema": { - "type": "object", - "properties": { - "operation_type": { "type": "string", "description": "Operation type", "enum": ["create", "modify", "创建", "修改"] }, - "task_description": { "type": "string", "description": "Task description" }, - "task_target": { "type": "string", "description": "Task target" }, - "task_object": { "type": "string", "description": "Task object" }, - "task_context": { "type": "string", "description": "Task context" }, - "expected_output": { "type": "string", "description": "Expected output" } - }, - "required": ["operation_type", "task_description"] - }, - "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1" + "result": "error", + "data": {}, + "error": { + "errCode": "slot.constraint_violated", + "errMessage": "" } } - ], - "expected": [ - { "result": "error", "data": {}, "error": { "errCode": "slot.constraint_violated", "errMessage": "" } } ] } -] +] \ No newline at end of file diff --git a/a2a-t-corpus/suites/task/resources/ran-intelligent-backup-battery-endurance-create/input_case_from_text.json b/a2a-t-corpus/suites/task/resources/ran-intelligent-backup-battery-endurance-create/input_case_from_text.json index b1aa155b..2cea58ee 100644 --- a/a2a-t-corpus/suites/task/resources/ran-intelligent-backup-battery-endurance-create/input_case_from_text.json +++ b/a2a-t-corpus/suites/task/resources/ran-intelligent-backup-battery-endurance-create/input_case_from_text.json @@ -2,13 +2,13 @@ { "id": "TC00000001", "caseDimension": "01-意图清晰参数完整", - "caseDesc": "创建档-标准创建诉求(站点+续航目标+小区列表)", + "caseDesc": "创建档-标准创建诉求(双站点+续航目标+小区列表)", "caseCategory": "正常", "input": [ { "api": "generateTaskPromptFromText", "args": { - "text": "创建无线智能备电任务:站点龙岩新罗水晶澜庭-HRHH,备电保障的续航时长目标4h,小区460-00-2136088-511重保4G 2.3GHz,小区460-00-2136088-512重保4G 2.3GHz,小区460-00-2136088-513关键4G 2.3GHz", + "text": "创建无线智能备电管理任务:基于任务对象和任务上下文进行无线智能备电管理,达成任务目标中定义的备电目标,按照预期输出中定义的结构返回任务处理结果。任务目标为创建新的分级下电任务,备电保障的续航时长目标4h。任务对象为站点龙岩新罗水晶澜庭-HRHH,小区460-00-2136088-511重保4G 2.3GHz,小区460-00-2136088-512重保4G 2.3GHz,小区460-00-2136088-513关键4G 2.3GHz;站点龙岩新罗龙辉小区-HRHH,小区460-00-2134161-514关键5G 2.6GHz,小区460-00-2134161-515一般5G 2.6GHz,小区460-00-2134161-516一般5G 2.6GHz。", "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1" } }, @@ -18,33 +18,72 @@ "schema": { "type": "object", "properties": { - "operation_type": { + "opType": { "type": "string", - "description": "Operation type of the wireless backup power task; allowed values are listed in the enum", - "enum": ["create", "modify"] + "description": "操作类型,取值范围:create、modify", + "enum": [ + "create", + "modify" + ] }, - "task_description": { + "target": { "type": "string", - "description": "Task description for the wireless intelligent backup power management task" + "description": "备电保障的续航时长目标,如4h、6h、8h;恢复任务时填回退无线智能备电配置" }, - "task_target": { - "type": "string", - "description": "Task target; one of: Create New Tiered Power-Down Task, Create Restoration Task, Modify Tiered Power-Down Task. When creating or modifying a tiered power-down task, the backup power endurance duration target must be provided." - }, - "task_object": { - "type": "string", - "description": "Task object; list of sites with their cells, including CGI, protection level, frequency band, technology, resident users, RRC users, traffic, and voice traffic" - }, - "task_context": { - "type": "string", - "description": "Task context information" - }, - "expected_output": { - "type": "string", - "description": "Expected output; for tiered power-down tasks: execution result, non-shutdown cell list, and shutdown cell list; for restoration tasks: execution result, no-rollback cell list, and rollback cell list" + "siteList": { + "type": "array", + "description": "站点列表", + "items": { + "type": "object", + "properties": { + "siteName": { + "type": "string", + "description": "站点名称,如龙岩新罗水晶澜庭-HRHH" + }, + "areaList": { + "type": "array", + "description": "小区列表", + "items": { + "type": "object", + "properties": { + "areaName": { + "type": "string", + "description": "小区标识,采用CGI,如460-00-2136088-511" + }, + "level": { + "type": "string", + "description": "小区保障等级", + "enum": [ + "CRITICAL", + "KEY", + "GENERAL" + ] + }, + "tech": { + "type": "string", + "description": "小区制式,如4G、5G" + }, + "freq": { + "type": "string", + "description": "小区频段,如2.3GHz、2.6GHz" + } + }, + "required": [ + "areaName" + ] + } + } + }, + "required": [ + "siteName" + ] + } } }, - "required": ["operation_type", "task_description"] + "required": [ + "opType", + "target" + ] }, "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1", "promptText": { @@ -58,29 +97,106 @@ { "result": "success", "data": {}, - "error": { "errCode": "", "errMessage": "" } + "error": { + "errCode": "", + "errMessage": "" + } }, { "result": "success", - "data": { - "operation_type": "create", - "task_target": "Create New Tiered Power-Down Task, backup power endurance duration target: 4h", - "task_object": "龙岩新罗水晶澜庭-HRHH: 460-00-2136088-511: Critical Protection, 4G, 2.3GHz; 460-00-2136088-512: Critical Protection, 4G, 2.3GHz; 460-00-2136088-513: Key, 4G, 2.3GHz" - }, - "error": { "errCode": "", "errMessage": "" } + "data": {}, + "error": { + "errCode": "", + "errMessage": "" + } } ] }, { "id": "TC00000002", + "caseDimension": "02-关键信息缺失", + "caseDesc": "创建诉求仅含续航目标,缺少任务描述,required应拦截", + "caseCategory": "异常", + "input": [ + { + "api": "generateTaskPromptFromText", + "args": { + "text": "备电保障的续航时长目标4h", + "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1" + } + } + ], + "expected": [ + { + "result": "error", + "data": {}, + "error": { + "errCode": "slot.not_provided", + "errMessage": "" + } + } + ] + }, + { + "id": "TC00000003", + "caseDimension": "03-意图描述模糊", + "caseDesc": "创建+操作类型泛化(新增),LLM成功映射为创建", + "caseCategory": "正常", + "input": [ + { + "api": "generateTaskPromptFromText", + "args": { + "text": "新增无线智能备电管理任务:基于任务对象和任务上下文进行无线智能备电管理,达成任务目标中定义的备电目标,按照预期输出中定义的结构返回任务处理结果。任务目标为创建新的分级下电任务,备电保障的续航时长目标4h。任务对象为站点龙岩新罗水晶澜庭-HRHH,小区460-00-2136088-511重保4G 2.3GHz。", + "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1" + } + } + ], + "expected": [ + { + "result": "success", + "data": {}, + "error": { + "errCode": "", + "errMessage": "" + } + } + ] + }, + { + "id": "TC00000004", + "caseDimension": "04-值域违规检测", + "caseDesc": "创建语境下动词删除被当作操作类型取值,值域违规拦截", + "caseCategory": "异常", + "input": [ + { + "api": "generateTaskPromptFromText", + "args": { + "text": "删除无线智能备电任务:站点龙岩新罗水晶澜庭-HRHH,备电保障的续航时长目标4h", + "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1" + } + } + ], + "expected": [ + { + "result": "error", + "data": {}, + "error": { + "errCode": "slot.constraint_violated", + "errMessage": "" + } + } + ] + }, + { + "id": "TC00000005", "caseDimension": "01-意图清晰参数完整", - "caseDesc": "创建档-多站点+混合制式+多保障等级", + "caseDesc": "创建档-创建恢复任务(回退备电配置),无任务对象", "caseCategory": "正常", "input": [ { "api": "generateTaskPromptFromText", "args": { - "text": "创建无线智能备电任务:站点龙岩新罗水晶澜庭-HRHH,备电保障的续航时长目标4h,小区460-00-2136088-511重保4G 2.3GHz,小区460-00-2136088-513关键4G 2.3GHz;站点龙岩新罗龙辉小区-HRHH,小区460-00-2134161-514关键5G 2.6GHz,小区460-00-2134161-515一般5G 2.6GHz", + "text": "创建无线智能备电管理任务:基于任务对象和任务上下文进行无线智能备电管理,达成任务目标中定义的备电目标,按照预期输出中定义的结构返回任务处理结果。任务目标为创建恢复任务,回退无线智能备电配置。", "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1" } }, @@ -90,33 +206,72 @@ "schema": { "type": "object", "properties": { - "operation_type": { - "type": "string", - "description": "Operation type of the wireless backup power task; allowed values are listed in the enum", - "enum": ["create", "modify"] - }, - "task_description": { - "type": "string", - "description": "Task description for the wireless intelligent backup power management task" - }, - "task_target": { + "opType": { "type": "string", - "description": "Task target; one of: Create New Tiered Power-Down Task, Create Restoration Task, Modify Tiered Power-Down Task." + "description": "操作类型,取值范围:create、modify", + "enum": [ + "create", + "modify" + ] }, - "task_object": { + "target": { "type": "string", - "description": "Task object; list of sites with their cells" + "description": "备电保障的续航时长目标,如4h、6h、8h;恢复任务时填回退无线智能备电配置" }, - "task_context": { - "type": "string", - "description": "Task context information" - }, - "expected_output": { - "type": "string", - "description": "Expected output" + "siteList": { + "type": "array", + "description": "站点列表", + "items": { + "type": "object", + "properties": { + "siteName": { + "type": "string", + "description": "站点名称,如龙岩新罗水晶澜庭-HRHH" + }, + "areaList": { + "type": "array", + "description": "小区列表", + "items": { + "type": "object", + "properties": { + "areaName": { + "type": "string", + "description": "小区标识,采用CGI,如460-00-2136088-511" + }, + "level": { + "type": "string", + "description": "小区保障等级", + "enum": [ + "CRITICAL", + "KEY", + "GENERAL" + ] + }, + "tech": { + "type": "string", + "description": "小区制式,如4G、5G" + }, + "freq": { + "type": "string", + "description": "小区频段,如2.3GHz、2.6GHz" + } + }, + "required": [ + "areaName" + ] + } + } + }, + "required": [ + "siteName" + ] + } } }, - "required": ["operation_type", "task_description"] + "required": [ + "opType", + "target" + ] }, "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1", "promptText": { @@ -130,39 +285,19 @@ { "result": "success", "data": {}, - "error": { "errCode": "", "errMessage": "" } + "error": { + "errCode": "", + "errMessage": "" + } }, { "result": "success", - "data": { - "operation_type": "create", - "task_target": "Create New Tiered Power-Down Task, backup power endurance duration target: 4h", - "task_object": "龙岩新罗水晶澜庭-HRHH: 460-00-2136088-511: Critical Protection, 4G, 2.3GHz; 460-00-2136088-513: Key, 4G, 2.3GHz; 龙岩新罗龙辉小区-HRHH: 460-00-2134161-514: Key, 5G, 2.6GHz; 460-00-2134161-515: General, 5G, 2.6GHz" - }, - "error": { "errCode": "", "errMessage": "" } - } - ] - }, - { - "id": "TC00000003", - "caseDimension": "04-关键信息缺失", - "caseDesc": "创建诉求缺少站点信息,required应拦截", - "caseCategory": "异常", - "input": [ - { - "api": "generateTaskPromptFromText", - "args": { - "text": "创建无线智能备电任务:备电保障的续航时长目标4h", - "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1" - } - } - ], - "expected": [ - { - "result": "error", "data": {}, - "error": { "errCode": "slot.not_provided", "errMessage": "" } + "error": { + "errCode": "", + "errMessage": "" + } } ] } -] +] \ No newline at end of file diff --git a/a2a-t-corpus/suites/task/resources/ran-intelligent-backup-battery-endurance-modify/input_case_from_data.json b/a2a-t-corpus/suites/task/resources/ran-intelligent-backup-battery-endurance-modify/input_case_from_data.json index 2c4a49be..05151b45 100644 --- a/a2a-t-corpus/suites/task/resources/ran-intelligent-backup-battery-endurance-modify/input_case_from_data.json +++ b/a2a-t-corpus/suites/task/resources/ran-intelligent-backup-battery-endurance-modify/input_case_from_data.json @@ -9,22 +9,80 @@ "api": "generateTaskPromptFromDataWithSchema", "args": { "data": { - "operation_type": "modify", - "task_description": "基于<任务对象>、<任务上下文> 进行无线智能备电管理,达成<任务目标>中定义的备电目标,按照<预期输出>中定义的结构返回任务处理结果", - "task_target": "修改分级下电任务,备电保障的续航时长目标:6h", - "task_object": "站点龙岩新罗水晶澜庭-HRHH,小区460-00-2136088-511重保4G 2.3GHz,小区460-00-2136088-513关键4G 2.3GHz" + "操作类型": "modify", + "任务描述": "基于<任务对象>、<任务上下文> 进行无线智能备电管理,达成<任务目标>中定义的备电目标,按照<预期输出>中定义的结构返回任务处理结果", + "任务目标": "修改分级下电任务,备电保障的续航时长目标:6h", + "任务对象": " - 龙岩新罗水晶澜庭-HRHH:\n - 460-00-2136088-511:重保,4G,2.3GHz\n - 460-00-2136088-512:重保,4G,2.3GHz\n - 460-00-2136088-513:关键,4G,2.3GHz\n - 龙岩新罗龙辉小区-HRHH:\n - 460-00-2134161-514:关键,5G,2.6GHz\n - 460-00-2134161-515:一般,5G,2.6GHz\n - 460-00-2134161-516:一般,5G,2.6GHz" }, "schema": { "type": "object", "properties": { - "operation_type": { "type": "string", "description": "Operation type", "enum": ["create", "modify", "创建", "修改"] }, - "task_description": { "type": "string", "description": "Task description" }, - "task_target": { "type": "string", "description": "Task target" }, - "task_object": { "type": "string", "description": "Task object" }, - "task_context": { "type": "string", "description": "Task context" }, - "expected_output": { "type": "string", "description": "Expected output" } + "opType": { + "type": "string", + "description": "操作类型,取值范围:create、modify", + "enum": [ + "create", + "modify" + ] + }, + "target": { + "type": "string", + "description": "备电保障的续航时长目标,如4h、6h、8h;恢复任务时填restore", + "pattern": "^[0-9]+h$|^restore$" + }, + "siteList": { + "type": "array", + "description": "站点列表", + "items": { + "type": "object", + "properties": { + "siteName": { + "type": "string", + "description": "站点名称,如龙岩新罗水晶澜庭-HRHH" + }, + "areaList": { + "type": "array", + "description": "小区列表", + "items": { + "type": "object", + "properties": { + "areaName": { + "type": "string", + "description": "小区标识,采用CGI,如460-00-2136088-511" + }, + "level": { + "type": "string", + "description": "小区保障等级,取值范围:Critical Protection、Key、General", + "enum": [ + "Critical Protection", + "Key", + "General" + ] + }, + "tech": { + "type": "string", + "description": "小区制式,取值范围:4G(或LTE)、5G(或NR)" + }, + "freq": { + "type": "string", + "description": "小区频段,如2.3GHz、2.6GHz" + } + }, + "required": [ + "areaName" + ] + } + } + }, + "required": [ + "siteName" + ] + } + } }, - "required": ["operation_type", "task_description"] + "required": [ + "opType" + ] }, "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1" } @@ -35,327 +93,283 @@ "schema": { "type": "object", "properties": { - "operation_type": { "type": "string", "description": "Operation type", "enum": ["create", "modify", "创建", "修改"] }, - "task_description": { "type": "string", "description": "Task description" }, - "task_target": { "type": "string", "description": "Task target" }, - "task_object": { "type": "string", "description": "Task object" }, - "task_context": { "type": "string", "description": "Task context" }, - "expected_output": { "type": "string", "description": "Expected output" } + "opType": { + "type": "string", + "description": "操作类型,取值范围:create、modify", + "enum": [ + "create", + "modify" + ] + }, + "target": { + "type": "string", + "description": "备电保障的续航时长目标,如4h、6h、8h;恢复任务时填restore", + "pattern": "^[0-9]+h$|^restore$" + }, + "siteList": { + "type": "array", + "description": "站点列表", + "items": { + "type": "object", + "properties": { + "siteName": { + "type": "string", + "description": "站点名称,如龙岩新罗水晶澜庭-HRHH" + }, + "areaList": { + "type": "array", + "description": "小区列表", + "items": { + "type": "object", + "properties": { + "areaName": { + "type": "string", + "description": "小区标识,采用CGI,如460-00-2136088-511" + }, + "level": { + "type": "string", + "description": "小区保障等级,取值范围:Critical Protection、Key、General", + "enum": [ + "Critical Protection", + "Key", + "General" + ] + }, + "tech": { + "type": "string", + "description": "小区制式,取值范围:4G(或LTE)、5G(或NR)" + }, + "freq": { + "type": "string", + "description": "小区频段,如2.3GHz、2.6GHz" + } + }, + "required": [ + "areaName" + ] + } + } + }, + "required": [ + "siteName" + ] + } + } }, - "required": ["operation_type", "task_description"] + "required": [ + "opType" + ] }, "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1", - "promptText": { "$fromStep": 1, "$field": "promptText" } + "promptText": { + "$fromStep": 1, + "$field": "promptText" + } } } ], "expected": [ - { "result": "success", "data": {}, "error": { "errCode": "", "errMessage": "" } }, - { "result": "success", "data": {}, "error": { "errCode": "", "errMessage": "" } } - ] - }, - { - "id": "TC00000002", - "caseDimension": "01-意图清晰参数完整", - "caseDesc": "data修改档-多站点+混合制式+调整续航目标", - "caseCategory": "正常", - "input": [ { - "api": "generateTaskPromptFromDataWithSchema", - "args": { - "data": { - "operation_type": "modify", - "task_description": "基于<任务对象>、<任务上下文> 进行无线智能备电管理,达成<任务目标>中定义的备电目标,按照<预期输出>中定义的结构返回任务处理结果", - "task_target": "修改分级下电任务,备电保障的续航时长目标:8h", - "task_object": "站点龙岩新罗水晶澜庭-HRHH,小区460-00-2136088-511重保4G 2.3GHz;站点龙岩新罗龙辉小区-HRHH,小区460-00-2134161-514关键5G 2.6GHz,小区460-00-2134161-515一般5G 2.6GHz" - }, - "schema": { - "type": "object", - "properties": { - "operation_type": { "type": "string", "description": "Operation type", "enum": ["create", "modify", "创建", "修改"] }, - "task_description": { "type": "string", "description": "Task description" }, - "task_target": { "type": "string", "description": "Task target" }, - "task_object": { "type": "string", "description": "Task object" }, - "task_context": { "type": "string", "description": "Task context" }, - "expected_output": { "type": "string", "description": "Expected output" } - }, - "required": ["operation_type", "task_description"] - }, - "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1" + "result": "success", + "data": {}, + "error": { + "errCode": "", + "errMessage": "" } }, { - "api": "validateTaskPromptAndDataFilling", - "args": { - "schema": { - "type": "object", - "properties": { - "operation_type": { "type": "string", "description": "Operation type", "enum": ["create", "modify", "创建", "修改"] }, - "task_description": { "type": "string", "description": "Task description" }, - "task_target": { "type": "string", "description": "Task target" }, - "task_object": { "type": "string", "description": "Task object" }, - "task_context": { "type": "string", "description": "Task context" }, - "expected_output": { "type": "string", "description": "Expected output" } - }, - "required": ["operation_type", "task_description"] - }, - "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1", - "promptText": { "$fromStep": 1, "$field": "promptText" } + "result": "success", + "data": {}, + "error": { + "errCode": "", + "errMessage": "" } } - ], - "expected": [ - { "result": "success", "data": {}, "error": { "errCode": "", "errMessage": "" } }, - { "result": "success", "data": {}, "error": { "errCode": "", "errMessage": "" } } ] }, { - "id": "TC00000003", - "caseDimension": "01-意图清晰参数完整", - "caseDesc": "data修改档-创建恢复任务(回退已有分级下电配置)", - "caseCategory": "正常", - "input": [ - { - "api": "generateTaskPromptFromDataWithSchema", - "args": { - "data": { - "operation_type": "create", - "task_description": "基于<任务对象>、<任务上下文> 进行无线智能备电管理,达成<任务目标>中定义的备电目标,按照<预期输出>中定义的结构返回任务处理结果", - "task_target": "创建恢复任务,回退无线智能备电配置", - "task_object": "站点龙岩新罗水晶澜庭-HRHH" - }, - "schema": { - "type": "object", - "properties": { - "operation_type": { "type": "string", "description": "Operation type", "enum": ["create", "modify", "创建", "修改"] }, - "task_description": { "type": "string", "description": "Task description" }, - "task_target": { "type": "string", "description": "Task target" }, - "task_object": { "type": "string", "description": "Task object" }, - "task_context": { "type": "string", "description": "Task context" }, - "expected_output": { "type": "string", "description": "Expected output" } - }, - "required": ["operation_type", "task_description"] - }, - "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1" - } - }, - { - "api": "validateTaskPromptAndDataFilling", - "args": { - "schema": { - "type": "object", - "properties": { - "operation_type": { "type": "string", "description": "Operation type", "enum": ["create", "modify", "创建", "修改"] }, - "task_description": { "type": "string", "description": "Task description" }, - "task_target": { "type": "string", "description": "Task target" }, - "task_object": { "type": "string", "description": "Task object" }, - "task_context": { "type": "string", "description": "Task context" }, - "expected_output": { "type": "string", "description": "Expected output" } - }, - "required": ["operation_type", "task_description"] - }, - "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1", - "promptText": { "$fromStep": 1, "$field": "promptText" } - } - } - ], - "expected": [ - { "result": "success", "data": {}, "error": { "errCode": "", "errMessage": "" } }, - { "result": "success", "data": {}, "error": { "errCode": "", "errMessage": "" } } - ] - }, - { - "id": "TC00000004", - "caseDimension": "01-意图清晰参数完整", - "caseDesc": "data修改档-仅站点名称(无小区列表,选填放行)", - "caseCategory": "正常", - "input": [ - { - "api": "generateTaskPromptFromDataWithSchema", - "args": { - "data": { - "operation_type": "modify", - "task_description": "基于<任务对象>、<任务上下文> 进行无线智能备电管理,达成<任务目标>中定义的备电目标,按照<预期输出>中定义的结构返回任务处理结果", - "task_target": "修改分级下电任务,备电保障的续航时长目标:2h", - "task_object": "站点龙岩新罗水晶澜庭-HRHH" - }, - "schema": { - "type": "object", - "properties": { - "operation_type": { "type": "string", "description": "Operation type", "enum": ["create", "modify", "创建", "修改"] }, - "task_description": { "type": "string", "description": "Task description" }, - "task_target": { "type": "string", "description": "Task target" }, - "task_object": { "type": "string", "description": "Task object" }, - "task_context": { "type": "string", "description": "Task context" }, - "expected_output": { "type": "string", "description": "Expected output" } - }, - "required": ["operation_type", "task_description"] - }, - "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1" - } - }, - { - "api": "validateTaskPromptAndDataFilling", - "args": { - "schema": { - "type": "object", - "properties": { - "operation_type": { "type": "string", "description": "Operation type", "enum": ["create", "modify", "创建", "修改"] }, - "task_description": { "type": "string", "description": "Task description" }, - "task_target": { "type": "string", "description": "Task target" }, - "task_object": { "type": "string", "description": "Task object" }, - "task_context": { "type": "string", "description": "Task context" }, - "expected_output": { "type": "string", "description": "Expected output" } - }, - "required": ["operation_type", "task_description"] - }, - "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1", - "promptText": { "$fromStep": 1, "$field": "promptText" } - } - } - ], - "expected": [ - { "result": "success", "data": {}, "error": { "errCode": "", "errMessage": "" } }, - { "result": "success", "data": {}, "error": { "errCode": "", "errMessage": "" } } - ] - }, - { - "id": "TC00000005", - "caseDimension": "01-意图清晰参数完整", - "caseDesc": "data修改档-带任务上下文(市电恢复,缩短续航目标)", - "caseCategory": "正常", + "id": "TC00000002", + "caseDimension": "02-关键信息缺失", + "caseDesc": "data修改缺少任务描述,required应拦截", + "caseCategory": "异常", "input": [ { "api": "generateTaskPromptFromDataWithSchema", "args": { "data": { - "operation_type": "modify", - "task_description": "基于<任务对象>、<任务上下文> 进行无线智能备电管理,达成<任务目标>中定义的备电目标,按照<预期输出>中定义的结构返回任务处理结果", - "task_target": "修改分级下电任务,备电保障的续航时长目标:2h", - "task_object": "站点龙岩新罗水晶澜庭-HRHH,小区460-00-2136088-511重保4G 2.3GHz,小区460-00-2136088-513关键4G 2.3GHz", - "task_context": "市电预计2小时后恢复,缩短备电保障时长" + "操作类型": "修改", + "任务目标": "创建新的分级下电任务,备电保障的续航时长目标:4h", + "任务对象": " - 龙岩新罗水晶澜庭-HRHH:" }, "schema": { "type": "object", "properties": { - "operation_type": { "type": "string", "description": "Operation type", "enum": ["create", "modify", "创建", "修改"] }, - "task_description": { "type": "string", "description": "Task description" }, - "task_target": { "type": "string", "description": "Task target" }, - "task_object": { "type": "string", "description": "Task object" }, - "task_context": { "type": "string", "description": "Task context" }, - "expected_output": { "type": "string", "description": "Expected output" } + "opType": { + "type": "string", + "description": "操作类型,取值范围:create、modify", + "enum": [ + "create", + "modify" + ] + }, + "target": { + "type": "string", + "description": "备电保障的续航时长目标,如4h、6h、8h;恢复任务时填restore", + "pattern": "^[0-9]+h$|^restore$" + }, + "siteList": { + "type": "array", + "description": "站点列表", + "items": { + "type": "object", + "properties": { + "siteName": { + "type": "string", + "description": "站点名称,如龙岩新罗水晶澜庭-HRHH" + }, + "areaList": { + "type": "array", + "description": "小区列表", + "items": { + "type": "object", + "properties": { + "areaName": { + "type": "string", + "description": "小区标识,采用CGI,如460-00-2136088-511" + }, + "level": { + "type": "string", + "description": "小区保障等级,取值范围:Critical Protection、Key、General", + "enum": [ + "Critical Protection", + "Key", + "General" + ] + }, + "tech": { + "type": "string", + "description": "小区制式,取值范围:4G(或LTE)、5G(或NR)" + }, + "freq": { + "type": "string", + "description": "小区频段,如2.3GHz、2.6GHz" + } + }, + "required": [ + "areaName" + ] + } + } + }, + "required": [ + "siteName" + ] + } + } }, - "required": ["operation_type", "task_description"] + "required": [ + "opType" + ] }, "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1" } - }, - { - "api": "validateTaskPromptAndDataFilling", - "args": { - "schema": { - "type": "object", - "properties": { - "operation_type": { "type": "string", "description": "Operation type", "enum": ["create", "modify", "创建", "修改"] }, - "task_description": { "type": "string", "description": "Task description" }, - "task_target": { "type": "string", "description": "Task target" }, - "task_object": { "type": "string", "description": "Task object" }, - "task_context": { "type": "string", "description": "Task context" }, - "expected_output": { "type": "string", "description": "Expected output" } - }, - "required": ["operation_type", "task_description"] - }, - "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1", - "promptText": { "$fromStep": 1, "$field": "promptText" } - } } ], "expected": [ - { "result": "success", "data": {}, "error": { "errCode": "", "errMessage": "" } }, - { "result": "success", "data": {}, "error": { "errCode": "", "errMessage": "" } } - ] - }, - { - "id": "TC00000006", - "caseDimension": "01-意图清晰参数完整", - "caseDesc": "data修改档-5G站点+修改续航目标至12h", - "caseCategory": "正常", - "input": [ { - "api": "generateTaskPromptFromDataWithSchema", - "args": { - "data": { - "operation_type": "modify", - "task_description": "基于<任务对象>、<任务上下文> 进行无线智能备电管理,达成<任务目标>中定义的备电目标,按照<预期输出>中定义的结构返回任务处理结果", - "task_target": "修改分级下电任务,备电保障的续航时长目标:12h", - "task_object": "站点龙岩新罗龙辉小区-HRHH,小区460-00-2134161-514关键5G 2.6GHz,小区460-00-2134161-515一般5G 2.6GHz,小区460-00-2134161-516一般5G 2.6GHz" - }, - "schema": { - "type": "object", - "properties": { - "operation_type": { "type": "string", "description": "Operation type", "enum": ["create", "modify", "创建", "修改"] }, - "task_description": { "type": "string", "description": "Task description" }, - "task_target": { "type": "string", "description": "Task target" }, - "task_object": { "type": "string", "description": "Task object" }, - "task_context": { "type": "string", "description": "Task context" }, - "expected_output": { "type": "string", "description": "Expected output" } - }, - "required": ["operation_type", "task_description"] - }, - "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1" - } - }, - { - "api": "validateTaskPromptAndDataFilling", - "args": { - "schema": { - "type": "object", - "properties": { - "operation_type": { "type": "string", "description": "Operation type", "enum": ["create", "modify", "创建", "修改"] }, - "task_description": { "type": "string", "description": "Task description" }, - "task_target": { "type": "string", "description": "Task target" }, - "task_object": { "type": "string", "description": "Task object" }, - "task_context": { "type": "string", "description": "Task context" }, - "expected_output": { "type": "string", "description": "Expected output" } - }, - "required": ["operation_type", "task_description"] - }, - "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1", - "promptText": { "$fromStep": 1, "$field": "promptText" } + "result": "error", + "data": {}, + "error": { + "errCode": "slot.not_provided", + "errMessage": "" } } - ], - "expected": [ - { "result": "success", "data": {}, "error": { "errCode": "", "errMessage": "" } }, - { "result": "success", "data": {}, "error": { "errCode": "", "errMessage": "" } } ] }, { - "id": "TC00000007", - "caseDimension": "01-意图清晰参数完整", - "caseDesc": "data修改档-含用户指标信息(常住用户+RRC用户+流量+话务)", - "caseCategory": "正常", + "id": "TC00000003", + "caseDimension": "03-意图描述模糊", + "caseDesc": "data修改-续航目标口语化(撑久一点),生成放行、服务端拒绝", + "caseCategory": "异常", "input": [ { "api": "generateTaskPromptFromDataWithSchema", "args": { "data": { - "operation_type": "modify", - "task_description": "基于<任务对象>、<任务上下文> 进行无线智能备电管理,达成<任务目标>中定义的备电目标,按照<预期输出>中定义的结构返回任务处理结果", - "task_target": "修改分级下电任务,备电保障的续航时长目标:4h", - "task_object": "站点龙岩新罗水晶澜庭-HRHH,小区460-00-2136088-511重保4G 2.3GHz,常住用户326户,当前RRC用户216户,流量12.6GB,话务72Erl;小区460-00-2136088-513关键4G 2.3GHz,常住用户150户,当前RRC用户80户,流量5.2GB,话务30Erl" + "操作类型": "修改", + "任务描述": "基于<任务对象>、<任务上下文> 进行无线智能备电管理,达成<任务目标>中定义的备电目标,按照<预期输出>中定义的结构返回任务处理结果", + "任务目标": "创建新的分级下电任务,备电保障的续航时长目标:撑久一点", + "任务对象": " - 龙岩新罗水晶澜庭-HRHH:" }, "schema": { "type": "object", "properties": { - "operation_type": { "type": "string", "description": "Operation type", "enum": ["create", "modify", "创建", "修改"] }, - "task_description": { "type": "string", "description": "Task description" }, - "task_target": { "type": "string", "description": "Task target" }, - "task_object": { "type": "string", "description": "Task object" }, - "task_context": { "type": "string", "description": "Task context" }, - "expected_output": { "type": "string", "description": "Expected output" } + "opType": { + "type": "string", + "description": "操作类型,取值范围:create、modify", + "enum": [ + "create", + "modify" + ] + }, + "target": { + "type": "string", + "description": "备电保障的续航时长目标,如4h、6h、8h;恢复任务时填restore", + "pattern": "^[0-9]+h$|^restore$" + }, + "siteList": { + "type": "array", + "description": "站点列表", + "items": { + "type": "object", + "properties": { + "siteName": { + "type": "string", + "description": "站点名称,如龙岩新罗水晶澜庭-HRHH" + }, + "areaList": { + "type": "array", + "description": "小区列表", + "items": { + "type": "object", + "properties": { + "areaName": { + "type": "string", + "description": "小区标识,采用CGI,如460-00-2136088-511" + }, + "level": { + "type": "string", + "description": "小区保障等级,取值范围:Critical Protection、Key、General", + "enum": [ + "Critical Protection", + "Key", + "General" + ] + }, + "tech": { + "type": "string", + "description": "小区制式,取值范围:4G(或LTE)、5G(或NR)" + }, + "freq": { + "type": "string", + "description": "小区频段,如2.3GHz、2.6GHz" + } + }, + "required": [ + "areaName" + ] + } + } + }, + "required": [ + "siteName" + ] + } + } }, - "required": ["operation_type", "task_description"] + "required": [ + "opType" + ] }, "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1" } @@ -366,213 +380,197 @@ "schema": { "type": "object", "properties": { - "operation_type": { "type": "string", "description": "Operation type", "enum": ["create", "modify", "创建", "修改"] }, - "task_description": { "type": "string", "description": "Task description" }, - "task_target": { "type": "string", "description": "Task target" }, - "task_object": { "type": "string", "description": "Task object" }, - "task_context": { "type": "string", "description": "Task context" }, - "expected_output": { "type": "string", "description": "Expected output" } + "opType": { + "type": "string", + "description": "操作类型,取值范围:create、modify", + "enum": [ + "create", + "modify" + ] + }, + "target": { + "type": "string", + "description": "备电保障的续航时长目标,如4h、6h、8h;恢复任务时填restore", + "pattern": "^[0-9]+h$|^restore$" + }, + "siteList": { + "type": "array", + "description": "站点列表", + "items": { + "type": "object", + "properties": { + "siteName": { + "type": "string", + "description": "站点名称,如龙岩新罗水晶澜庭-HRHH" + }, + "areaList": { + "type": "array", + "description": "小区列表", + "items": { + "type": "object", + "properties": { + "areaName": { + "type": "string", + "description": "小区标识,采用CGI,如460-00-2136088-511" + }, + "level": { + "type": "string", + "description": "小区保障等级,取值范围:Critical Protection、Key、General", + "enum": [ + "Critical Protection", + "Key", + "General" + ] + }, + "tech": { + "type": "string", + "description": "小区制式,取值范围:4G(或LTE)、5G(或NR)" + }, + "freq": { + "type": "string", + "description": "小区频段,如2.3GHz、2.6GHz" + } + }, + "required": [ + "areaName" + ] + } + } + }, + "required": [ + "siteName" + ] + } + } }, - "required": ["operation_type", "task_description"] + "required": [ + "opType" + ] }, "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1", - "promptText": { "$fromStep": 1, "$field": "promptText" } + "promptText": { + "$fromStep": 1, + "$field": "promptText" + } } } ], "expected": [ - { "result": "success", "data": {}, "error": { "errCode": "", "errMessage": "" } }, - { "result": "success", "data": {}, "error": { "errCode": "", "errMessage": "" } } - ] - }, - { - "id": "TC00000008", - "caseDimension": "01-意图清晰参数完整", - "caseDesc": "data修改档-多站点恢复任务(多站点回退配置)", - "caseCategory": "正常", - "input": [ { - "api": "generateTaskPromptFromDataWithSchema", - "args": { - "data": { - "operation_type": "create", - "task_description": "基于<任务对象>、<任务上下文> 进行无线智能备电管理,达成<任务目标>中定义的备电目标,按照<预期输出>中定义的结构返回任务处理结果", - "task_target": "创建恢复任务,回退无线智能备电配置", - "task_object": "站点龙岩新罗水晶澜庭-HRHH;站点龙岩新罗龙辉小区-HRHH" - }, - "schema": { - "type": "object", - "properties": { - "operation_type": { "type": "string", "description": "Operation type", "enum": ["create", "modify", "创建", "修改"] }, - "task_description": { "type": "string", "description": "Task description" }, - "task_target": { "type": "string", "description": "Task target" }, - "task_object": { "type": "string", "description": "Task object" }, - "task_context": { "type": "string", "description": "Task context" }, - "expected_output": { "type": "string", "description": "Expected output" } - }, - "required": ["operation_type", "task_description"] - }, - "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1" + "result": "success", + "data": {}, + "error": { + "errCode": "", + "errMessage": "" } }, { - "api": "validateTaskPromptAndDataFilling", - "args": { - "schema": { - "type": "object", - "properties": { - "operation_type": { "type": "string", "description": "Operation type", "enum": ["create", "modify", "创建", "修改"] }, - "task_description": { "type": "string", "description": "Task description" }, - "task_target": { "type": "string", "description": "Task target" }, - "task_object": { "type": "string", "description": "Task object" }, - "task_context": { "type": "string", "description": "Task context" }, - "expected_output": { "type": "string", "description": "Expected output" } - }, - "required": ["operation_type", "task_description"] - }, - "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1", - "promptText": { "$fromStep": 1, "$field": "promptText" } + "result": "error", + "data": {}, + "error": { + "errCode": "negotiation.semantic_rejected", + "errMessage": "" } } - ], - "expected": [ - { "result": "success", "data": {}, "error": { "errCode": "", "errMessage": "" } }, - { "result": "success", "data": {}, "error": { "errCode": "", "errMessage": "" } } ] }, { - "id": "TC00000009", - "caseDimension": "04-关键信息缺失", - "caseDesc": "data修改缺少任务描述,required应拦截", - "caseCategory": "异常", - "input": [ - { - "api": "generateTaskPromptFromDataWithSchema", - "args": { - "data": { - "operation_type": "modify", - "task_target": "修改分级下电任务,备电保障的续航时长目标:6h", - "task_object": "站点龙岩新罗水晶澜庭-HRHH" - }, - "schema": { - "type": "object", - "properties": { - "operation_type": { "type": "string", "description": "Operation type", "enum": ["create", "modify", "创建", "修改"] }, - "task_description": { "type": "string", "description": "Task description" }, - "task_target": { "type": "string", "description": "Task target" }, - "task_object": { "type": "string", "description": "Task object" }, - "task_context": { "type": "string", "description": "Task context" }, - "expected_output": { "type": "string", "description": "Expected output" } - }, - "required": ["operation_type", "task_description"] - }, - "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1" - } - } - ], - "expected": [ - { "result": "error", "data": {}, "error": { "errCode": "slot.not_provided", "errMessage": "" } } - ] - }, - { - "id": "TC00000010", - "caseDimension": "04-关键信息缺失", - "caseDesc": "data修改缺少操作类型,LLM从task_target推断补值", - "caseCategory": "边界", - "input": [ - { - "api": "generateTaskPromptFromDataWithSchema", - "args": { - "data": { - "task_description": "基于<任务对象>、<任务上下文> 进行无线智能备电管理,达成<任务目标>中定义的备电目标,按照<预期输出>中定义的结构返回任务处理结果", - "task_target": "修改分级下电任务,备电保障的续航时长目标:6h" - }, - "schema": { - "type": "object", - "properties": { - "operation_type": { "type": "string", "description": "Operation type", "enum": ["create", "modify", "创建", "修改"] }, - "task_description": { "type": "string", "description": "Task description" }, - "task_target": { "type": "string", "description": "Task target" }, - "task_object": { "type": "string", "description": "Task object" }, - "task_context": { "type": "string", "description": "Task context" }, - "expected_output": { "type": "string", "description": "Expected output" } - }, - "required": ["operation_type", "task_description"] - }, - "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1" - } - } - ], - "expected": [ - { "result": "success", "data": {}, "error": { "errCode": "", "errMessage": "" } } - ] - }, - { - "id": "TC00000011", - "caseDimension": "06-值域违规检测", - "caseDesc": "data修改操作类型\"query\"违规", + "id": "TC00000004", + "caseDimension": "04-值域违规检测", + "caseDesc": "data修改操作类型delete违规", "caseCategory": "异常", "input": [ { "api": "generateTaskPromptFromDataWithSchema", "args": { "data": { - "operation_type": "query", - "task_description": "基于<任务对象>、<任务上下文> 进行无线智能备电管理,达成<任务目标>中定义的备电目标,按照<预期输出>中定义的结构返回任务处理结果", - "task_target": "修改分级下电任务,备电保障的续航时长目标:6h" + "操作类型": "delete", + "任务描述": "基于<任务对象>、<任务上下文> 进行无线智能备电管理,达成<任务目标>中定义的备电目标,按照<预期输出>中定义的结构返回任务处理结果", + "任务目标": "修改分级下电任务,备电保障的续航时长目标:6h" }, "schema": { "type": "object", "properties": { - "operation_type": { "type": "string", "description": "Operation type", "enum": ["create", "modify", "创建", "修改"] }, - "task_description": { "type": "string", "description": "Task description" }, - "task_target": { "type": "string", "description": "Task target" }, - "task_object": { "type": "string", "description": "Task object" }, - "task_context": { "type": "string", "description": "Task context" }, - "expected_output": { "type": "string", "description": "Expected output" } + "opType": { + "type": "string", + "description": "操作类型,取值范围:create、modify", + "enum": [ + "create", + "modify" + ] + }, + "target": { + "type": "string", + "description": "备电保障的续航时长目标,如4h、6h、8h;恢复任务时填restore", + "pattern": "^[0-9]+h$|^restore$" + }, + "siteList": { + "type": "array", + "description": "站点列表", + "items": { + "type": "object", + "properties": { + "siteName": { + "type": "string", + "description": "站点名称,如龙岩新罗水晶澜庭-HRHH" + }, + "areaList": { + "type": "array", + "description": "小区列表", + "items": { + "type": "object", + "properties": { + "areaName": { + "type": "string", + "description": "小区标识,采用CGI,如460-00-2136088-511" + }, + "level": { + "type": "string", + "description": "小区保障等级,取值范围:Critical Protection、Key、General", + "enum": [ + "Critical Protection", + "Key", + "General" + ] + }, + "tech": { + "type": "string", + "description": "小区制式,取值范围:4G(或LTE)、5G(或NR)" + }, + "freq": { + "type": "string", + "description": "小区频段,如2.3GHz、2.6GHz" + } + }, + "required": [ + "areaName" + ] + } + } + }, + "required": [ + "siteName" + ] + } + } }, - "required": ["operation_type", "task_description"] + "required": [ + "opType" + ] }, "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1" } } ], "expected": [ - { "result": "error", "data": {}, "error": { "errCode": "slot.not_provided", "errMessage": "" } } - ] - }, - { - "id": "TC00000012", - "caseDimension": "06-值域违规检测", - "caseDesc": "data修改操作类型\"rollback\"违规", - "caseCategory": "异常", - "input": [ { - "api": "generateTaskPromptFromDataWithSchema", - "args": { - "data": { - "operation_type": "rollback", - "task_description": "基于<任务对象>、<任务上下文> 进行无线智能备电管理,达成<任务目标>中定义的备电目标,按照<预期输出>中定义的结构返回任务处理结果", - "task_target": "修改分级下电任务,备电保障的续航时长目标:6h" - }, - "schema": { - "type": "object", - "properties": { - "operation_type": { "type": "string", "description": "Operation type", "enum": ["create", "modify", "创建", "修改"] }, - "task_description": { "type": "string", "description": "Task description" }, - "task_target": { "type": "string", "description": "Task target" }, - "task_object": { "type": "string", "description": "Task object" }, - "task_context": { "type": "string", "description": "Task context" }, - "expected_output": { "type": "string", "description": "Expected output" } - }, - "required": ["operation_type", "task_description"] - }, - "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1" + "result": "error", + "data": {}, + "error": { + "errCode": "slot.constraint_violated", + "errMessage": "" } } - ], - "expected": [ - { "result": "error", "data": {}, "error": { "errCode": "slot.constraint_violated", "errMessage": "" } } ] } -] +] \ No newline at end of file diff --git a/a2a-t-corpus/suites/task/resources/ran-intelligent-backup-battery-endurance-modify/input_case_from_text.json b/a2a-t-corpus/suites/task/resources/ran-intelligent-backup-battery-endurance-modify/input_case_from_text.json index 9392c107..21308032 100644 --- a/a2a-t-corpus/suites/task/resources/ran-intelligent-backup-battery-endurance-modify/input_case_from_text.json +++ b/a2a-t-corpus/suites/task/resources/ran-intelligent-backup-battery-endurance-modify/input_case_from_text.json @@ -2,13 +2,13 @@ { "id": "TC00000001", "caseDimension": "01-意图清晰参数完整", - "caseDesc": "修改档-标准修改诉求(站点+续航目标+小区列表)", + "caseDesc": "修改档-修改分级下电任务(调整续航目标6h),无任务对象", "caseCategory": "正常", "input": [ { "api": "generateTaskPromptFromText", "args": { - "text": "把无线智能备电任务调整为修改:站点龙岩新罗水晶澜庭-HRHH,备电保障的续航时长目标6h,小区460-00-2136088-511重保4G 2.3GHz,小区460-00-2136088-513关键4G 2.3GHz", + "text": "修改无线智能备电管理任务:基于任务对象和任务上下文进行无线智能备电管理,达成任务目标中定义的备电目标,按照预期输出中定义的结构返回任务处理结果。任务目标为修改分级下电任务,备电保障的续航时长目标6h。", "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1" } }, @@ -18,33 +18,72 @@ "schema": { "type": "object", "properties": { - "operation_type": { + "opType": { "type": "string", - "description": "Operation type of the wireless backup power task; allowed values are listed in the enum", - "enum": ["create", "modify"] + "description": "操作类型,取值范围:create、modify", + "enum": [ + "create", + "modify" + ] }, - "task_description": { + "target": { "type": "string", - "description": "Task description for the wireless intelligent backup power management task" + "description": "备电保障的续航时长目标,如4h、6h、8h;恢复任务时填回退无线智能备电配置" }, - "task_target": { - "type": "string", - "description": "Task target; one of: Create New Tiered Power-Down Task, Create Restoration Task, Modify Tiered Power-Down Task." - }, - "task_object": { - "type": "string", - "description": "Task object; list of sites with their cells" - }, - "task_context": { - "type": "string", - "description": "Task context information" - }, - "expected_output": { - "type": "string", - "description": "Expected output" + "siteList": { + "type": "array", + "description": "站点列表", + "items": { + "type": "object", + "properties": { + "siteName": { + "type": "string", + "description": "站点名称,如龙岩新罗水晶澜庭-HRHH" + }, + "areaList": { + "type": "array", + "description": "小区列表", + "items": { + "type": "object", + "properties": { + "areaName": { + "type": "string", + "description": "小区标识,采用CGI,如460-00-2136088-511" + }, + "level": { + "type": "string", + "description": "小区保障等级", + "enum": [ + "CRITICAL", + "KEY", + "GENERAL" + ] + }, + "tech": { + "type": "string", + "description": "小区制式,如4G、5G" + }, + "freq": { + "type": "string", + "description": "小区频段,如2.3GHz、2.6GHz" + } + }, + "required": [ + "areaName" + ] + } + } + }, + "required": [ + "siteName" + ] + } } }, - "required": ["operation_type", "task_description"] + "required": [ + "opType", + "target" + ] }, "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1", "promptText": { @@ -58,29 +97,56 @@ { "result": "success", "data": {}, - "error": { "errCode": "", "errMessage": "" } + "error": { + "errCode": "", + "errMessage": "" + } }, { "result": "success", - "data": { - "operation_type": "modify", - "task_target": "Modify Tiered Power-Down Task, backup power endurance duration target: 6h", - "task_object": "龙岩新罗水晶澜庭-HRHH: 460-00-2136088-511: Critical Protection, 4G, 2.3GHz; 460-00-2136088-513: Key, 4G, 2.3GHz" - }, - "error": { "errCode": "", "errMessage": "" } + "data": {}, + "error": { + "errCode": "", + "errMessage": "" + } } ] }, { "id": "TC00000002", - "caseDimension": "01-意图清晰参数完整", - "caseDesc": "修改档-创建恢复任务(回退配置)", + "caseDimension": "02-关键信息缺失", + "caseDesc": "修改诉求缺少任务描述,required应拦截", + "caseCategory": "异常", + "input": [ + { + "api": "generateTaskPromptFromText", + "args": { + "text": "修改无线智能备电任务,备电保障的续航时长目标6h", + "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1" + } + } + ], + "expected": [ + { + "result": "error", + "data": {}, + "error": { + "errCode": "slot.not_provided", + "errMessage": "" + } + } + ] + }, + { + "id": "TC00000003", + "caseDimension": "03-意图描述模糊", + "caseDesc": "修改+操作类型泛化(调整),预期泛化后仍然成功", "caseCategory": "正常", "input": [ { "api": "generateTaskPromptFromText", "args": { - "text": "创建恢复任务:回退无线智能备电配置,站点龙岩新罗水晶澜庭-HRHH", + "text": "调整无线智能备电管理任务:基于任务对象和任务上下文进行无线智能备电管理,达成任务目标中定义的备电目标,按照预期输出中定义的结构返回任务处理结果。任务目标为修改分级下电任务,备电保障的续航时长目标6h。", "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1" } }, @@ -90,33 +156,72 @@ "schema": { "type": "object", "properties": { - "operation_type": { + "opType": { "type": "string", - "description": "Operation type of the wireless backup power task; allowed values are listed in the enum", - "enum": ["create", "modify"] + "description": "操作类型,取值范围:create、modify", + "enum": [ + "create", + "modify" + ] }, - "task_description": { + "target": { "type": "string", - "description": "Task description for the wireless intelligent backup power management task" + "description": "备电保障的续航时长目标,如4h、6h、8h;恢复任务时填回退无线智能备电配置" }, - "task_target": { - "type": "string", - "description": "Task target; one of: Create New Tiered Power-Down Task, Create Restoration Task, Modify Tiered Power-Down Task." - }, - "task_object": { - "type": "string", - "description": "Task object; list of sites with their cells" - }, - "task_context": { - "type": "string", - "description": "Task context information" - }, - "expected_output": { - "type": "string", - "description": "Expected output" + "siteList": { + "type": "array", + "description": "站点列表", + "items": { + "type": "object", + "properties": { + "siteName": { + "type": "string", + "description": "站点名称,如龙岩新罗水晶澜庭-HRHH" + }, + "areaList": { + "type": "array", + "description": "小区列表", + "items": { + "type": "object", + "properties": { + "areaName": { + "type": "string", + "description": "小区标识,采用CGI,如460-00-2136088-511" + }, + "level": { + "type": "string", + "description": "小区保障等级", + "enum": [ + "CRITICAL", + "KEY", + "GENERAL" + ] + }, + "tech": { + "type": "string", + "description": "小区制式,如4G、5G" + }, + "freq": { + "type": "string", + "description": "小区频段,如2.3GHz、2.6GHz" + } + }, + "required": [ + "areaName" + ] + } + } + }, + "required": [ + "siteName" + ] + } } }, - "required": ["operation_type", "task_description"] + "required": [ + "opType", + "target" + ] }, "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1", "promptText": { @@ -130,16 +235,44 @@ { "result": "success", "data": {}, - "error": { "errCode": "", "errMessage": "" } + "error": { + "errCode": "", + "errMessage": "" + } }, { "result": "success", - "data": { - "operation_type": "create", - "task_target": "Create Restoration Task" - }, - "error": { "errCode": "", "errMessage": "" } + "data": {}, + "error": { + "errCode": "", + "errMessage": "" + } + } + ] + }, + { + "id": "TC00000004", + "caseDimension": "04-值域违规检测", + "caseDesc": "修改语境下动词导出被当作操作类型取值,值域违规拦截", + "caseCategory": "异常", + "input": [ + { + "api": "generateTaskPromptFromText", + "args": { + "text": "导出无线智能备电任务,备电保障的续航时长目标6h", + "templateUri": "Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1" + } + } + ], + "expected": [ + { + "result": "error", + "data": {}, + "error": { + "errCode": "slot.constraint_violated", + "errMessage": "" + } } ] } -] +] \ No newline at end of file diff --git a/src/a2a_t/prompt_resources/slots/Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1/en-US/slot.json b/src/a2a_t/prompt_resources/slots/Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1/en-US/slot.json index bf8c34a3..3668248e 100644 --- a/src/a2a_t/prompt_resources/slots/Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1/en-US/slot.json +++ b/src/a2a_t/prompt_resources/slots/Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1/en-US/slot.json @@ -5,11 +5,11 @@ "properties": { "operation_type": { "type": "string", - "description": "Please provide the operation type. Allowed values: Create, Modify.", + "description": "Please provide the operation type. Allowed values: Create, Modify. Synonyms such as 'add' or 'new' should be mapped to Create; 'adjust' or 'change' should be mapped to Modify.", "examples": [ "Create" ], - "x-a2at-value-constraint": "Allowed values: Create, Modify" + "x-a2at-value-constraint": "Allowed values: Create, Modify. Synonyms such as add/new map to Create; adjust/change map to Modify." }, "task_description": { "type": "string", @@ -21,19 +21,20 @@ }, "task_target": { "type": "string", - "description": "The task target supports 3 options: Create New Tiered Power-Down Task, Create Restoration Task, Modify Tiered Power-Down Task. Among them, Create Restoration Task is used to roll back the configuration delivered by an existing tiered power-down task. When selecting Create New Tiered Power-Down Task or Modify Tiered Power-Down Task, the backup power endurance duration target must be provided.", + "description": "The task target supports 3 options: Create New Tiered Power-Down Task, Create Restoration Task, Modify Tiered Power-Down Task. Among them, Create Restoration Task is used to roll back the configuration delivered by an existing tiered power-down task. When selecting Create New Tiered Power-Down Task or Modify Tiered Power-Down Task, the backup power endurance duration target must be provided. When selecting Create Restoration Task, the content is to roll back wireless intelligent backup power configuration.", "examples": [ - "Create New Tiered Power-Down Task, backup power endurance duration target: 4h" + "4h", + "Roll back wireless intelligent backup power configuration" ], - "x-a2at-value-constraint": "1. Create New Tiered Power-Down Task: backup power endurance duration target required, e.g. 4h. 2. Create Restoration Task: roll back wireless intelligent backup power configuration. 3. Modify Tiered Power-Down Task: backup power endurance duration target required, e.g. 4h." + "x-a2at-value-constraint": "Task target value rules: 1. Create New Tiered Power-Down Task: fill in backup power endurance duration target, e.g. 4h, 6h, 8h. 2. Create Restoration Task: fill in Roll back wireless intelligent backup power configuration. 3. Modify Tiered Power-Down Task: fill in backup power endurance duration target, e.g. 4h, 6h, 8h." }, "task_object": { "type": "string", "description": "Supports list format, where each item contains site name and the list of cells included in the site. Required for Create New Tiered Power-Down Task, optional for Modify Tiered Power-Down Task, optional for Create Restoration Task.", "examples": [ - "Longyan Xinluo Crystal Lanting-HRHH: 460-00-2136088-511: Critical Protection, 4G, 2.3GHz; 460-00-2136088-512: Critical Protection, 4G, 2.3GHz; 460-00-2136088-513: Key, 4G, 2.3GHz" + " - Longyan Xinluo Crystal Lanting-HRHH:\n - 460-00-2136088-511: Critical Protection, 4G, 2.3GHz\n - 460-00-2136088-512: Critical Protection, 4G, 2.3GHz\n - 460-00-2136088-513: Key, 4G, 2.3GHz\n - Longyan Xinluo Longhui Community-HRHH:\n - 460-00-2134161-514: Key, 5G, 2.6GHz\n - 460-00-2134161-515: General, 5G, 2.6GHz\n - 460-00-2134161-516: General, 5G, 2.6GHz" ], - "x-a2at-value-constraint": "Site name (required for Create New Tiered Power-Down Task, optional for Modify Tiered Power-Down Task, optional for Create Restoration Task). Cell list contains: cell identifier (CGI, e.g. 460-00-2136088-512), cell protection level (Critical Protection/Key/General), cell frequency band (e.g. 2.6GHz), cell technology (4G or LTE/5G or NR), resident users, current RRC users, traffic, voice traffic. Cell list is optional for Create New Tiered Power-Down Task and Modify Tiered Power-Down Task, not required for Create Restoration Task." + "x-a2at-value-constraint": "Site name (required for Create New Tiered Power-Down Task, optional for Modify Tiered Power-Down Task, optional for Create Restoration Task). Must strictly follow the example format: each site starts with ' - Site Name:', cells under each site are indented as ' - CGI: Protection Level, Technology, Frequency Band'. Cell list contains: cell identifier (CGI), cell protection level (Critical Protection/Key/General), cell frequency band, cell technology (4G or LTE/5G or NR), resident users, current RRC users, traffic, voice traffic. Cell list is optional for Create New Tiered Power-Down Task and Modify Tiered Power-Down Task, not required for Create Restoration Task." }, "task_context": { "type": "string", diff --git a/src/a2a_t/prompt_resources/slots/Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1/zh-CN/slot.json b/src/a2a_t/prompt_resources/slots/Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1/zh-CN/slot.json index adfe7046..3e7e0a90 100644 --- a/src/a2a_t/prompt_resources/slots/Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1/zh-CN/slot.json +++ b/src/a2a_t/prompt_resources/slots/Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1/zh-CN/slot.json @@ -5,11 +5,11 @@ "properties": { "操作类型": { "type": "string", - "description": "请提供操作类型,取值范围:创建、修改。", + "description": "请提供操作类型,取值范围:创建、修改。新增、新建等同义词应映射为创建;调整、变更等应映射为修改。", "examples": [ "创建" ], - "x-a2at-value-constraint": "取值范围:创建、修改" + "x-a2at-value-constraint": "取值范围:创建、修改。新增、新建等同义词映射为创建;调整、变更等映射为修改。" }, "任务描述": { "type": "string", @@ -21,19 +21,20 @@ }, "任务目标": { "type": "string", - "description": "任务目标支持3种选项:创建新的分级下电任务、创建恢复任务、修改分级下电任务。其中,创建恢复任务用于回退已有的分级下电任务下发的配置。选择创建新的分级下电任务或修改分级下电任务时,需提供备电保障的续航时长目标。", + "description": "任务目标支持3种选项:创建新的分级下电任务、创建恢复任务、修改分级下电任务。其中,创建恢复任务用于回退已有的分级下电任务下发的配置。选择创建新的分级下电任务或修改分级下电任务时,需提供备电保障的续航时长目标。选择创建恢复任务时,内容为回退无线智能备电配置。", "examples": [ - "创建新的分级下电任务,备电保障的续航时长目标:4h" + "4h", + "回退无线智能备电配置" ], - "x-a2at-value-constraint": "1. 创建新的分级下电任务:需提供备电保障的续航时长目标,如4h。 2. 创建恢复任务:回退无线智能备电配置。 3. 修改分级下电任务:需提供备电保障的续航时长目标,如4h。" + "x-a2at-value-constraint": "任务目标取值规则:1. 创建新的分级下电任务时,填写备电保障的续航时长目标,如4h、6h、8h。2. 创建恢复任务时,填写回退无线智能备电配置。3. 修改分级下电任务时,填写备电保障的续航时长目标,如4h、6h、8h。" }, "任务对象": { "type": "string", "description": "支持列表形式,列表中的每一项包含站点名称及站点所包含的小区列表。创建新的分级下电任务时必填,修改分级下电任务时选填,创建恢复任务时选填。", "examples": [ - "龙岩新罗水晶澜庭-HRHH:460-00-2136088-511:重保,4G,2.3GHz;460-00-2136088-512:重保,4G,2.3GHz;460-00-2136088-513:关键,4G,2.3GHz" + " - 龙岩新罗水晶澜庭-HRHH:\n - 460-00-2136088-511:重保,4G,2.3GHz\n - 460-00-2136088-512:重保,4G,2.3GHz\n - 460-00-2136088-513:关键,4G,2.3GHz\n - 龙岩新罗龙辉小区-HRHH:\n - 460-00-2134161-514:关键,5G,2.6GHz\n - 460-00-2134161-515:一般,5G,2.6GHz\n - 460-00-2134161-516:一般,5G,2.6GHz" ], - "x-a2at-value-constraint": "站点名称(创建新的分级下电任务时必填,修改分级下电任务时选填,创建恢复任务时选填)。小区列表包含:小区标识(CGI,如460-00-2136088-512)、小区保障等级(重保/关键/一般)、小区频段(如2.6GHz)、小区制式(4G或LTE/5G或NR)、常住用户、当前RRC用户、流量、话务。创建新的分级下电任务和修改分级下电任务时选填小区列表,创建恢复任务时无需填写。" + "x-a2at-value-constraint": "站点名称(创建新的分级下电任务时必填,修改分级下电任务时选填,创建恢复任务时选填)。必须严格参照example样例的格式输出:每个站点以' - 站点名称:'开头,站点下的小区以' - CGI:保障等级,制式,频段'格式缩进列出。小区列表包含:小区标识(CGI,如460-00-2136088-512)、小区保障等级(重保/关键/一般)、小区频段(如2.6GHz)、小区制式(4G或LTE/5G或NR)、常住用户、当前RRC用户、流量、话务。创建新的分级下电任务和修改分级下电任务时选填小区列表,创建恢复任务时无需填写。" }, "任务上下文": { "type": "string", diff --git a/src/a2a_t/prompt_resources/templates/Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1/en-US/template.md b/src/a2a_t/prompt_resources/templates/Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1/en-US/template.md index c5f669dc..f199eb77 100644 --- a/src/a2a_t/prompt_resources/templates/Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1/en-US/template.md +++ b/src/a2a_t/prompt_resources/templates/Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1/en-US/template.md @@ -33,14 +33,14 @@ The specific requirements for these 3 options are as follows: ## Task Object -{{task_object}} (required for Create New Tiered Power-Down Task, optional for Modify Tiered Power-Down Task, optional for Create Restoration Task) +{{task_object}} (required for `Create New Tiered Power-Down Task`, optional for `Modify Tiered Power-Down Task`, optional for `Create Restoration Task`) Requirement: 1. Supports list format, where each item in the list contains the following information: - - Site Name: The name of the site that needs to execute the backup power task; example: "Longyan Xinluo Crystal Lanting-HRHH"; (Required for Create New Tiered Power-Down Task, Optional for Modify Tiered Power-Down Task, Optional for Create Restoration Task) - - The list of cells included in the site, which may contain the following: (Optional for Create New Tiered Power-Down Task, Optional for Modify Tiered Power-Down Task, Not required for Create Restoration Task) - - Cell Identifier: Using CGI; example: "460-00-2136088-512"; + - Site Name: the name of the site that needs to execute the backup power task; example: "Longyan Xinluo Crystal Lanting-HRHH"; (Required for `Create New Tiered Power-Down Task`, Optional for `Modify Tiered Power-Down Task`, Optional for `Create Restoration Task`) + - The list of cells included in the site, which may contain the following: (Optional for `Create New Tiered Power-Down Task`, Optional for `Modify Tiered Power-Down Task`, Not required for `Create Restoration Task`) + - Cell Identifier: using CGI; example: "460-00-2136088-512"; - Cell Protection Level; allowed values include: Critical Protection, Key, General; example: "Critical Protection"; - Cell Frequency Band; example: 2.6GHz; - Cell Technology; allowed values: 4G (or LTE), 5G (or NR); example: 5G; @@ -69,32 +69,32 @@ Example: Requirement: -1. When `Create New Tiered Power-Down Task` or `Modify Tiered Power-Down Task`, provide the following content: +1. When `Create New Tiered Power-Down Task` or `Modify Tiered Power-Down Task` is selected, provide the following content: - Execution Result; allowed values include: Success, Failure; (required) - Provide the cell lists for non-shutdown and executed shutdown separately (required) - Cell list not to be shut down in this task: - Site Name - The list of cells included in the site, which must contain the following: - - Cell Identifier: Using CGI; example: "460-00-2136088-511"; + - Cell Identifier: using CGI; example: "460-00-2136088-511"; - Cell list for executed shutdown: - Site Name - The list of cells included in the site, which must contain the following: - - Cell Identifier: Using CGI; example: "460-00-2136088-513"; + - Cell Identifier: using CGI; example: "460-00-2136088-513"; - Frequency Band; example: 2.3GHz; - Cell Shutdown Execution Result; example: Execution Success; - Shutdown Execution Time; example: 2026/9/16 21:42:09; -2. When `Create Restoration Task`, provide the following content: +2. When `Create Restoration Task` is selected, provide the following content: - Execution Result; allowed values include: Success, Failure; (required) - Provide the cell lists for no-rollback and executed rollback separately (required) - Cell list not requiring rollback in this task: - Site Name - The list of cells included in the site, which must contain the following: - - Cell Identifier: Using CGI; example: "460-00-2136088-511"; + - Cell Identifier: using CGI; example: "460-00-2136088-511"; - Cell list for executed rollback: - Site Name - The list of cells included in the site, which must contain the following: - - Cell Identifier: Using CGI; example: "460-00-2136088-513"; + - Cell Identifier: using CGI; example: "460-00-2136088-513"; - Frequency Band; example: 2.3GHz; - Cell Rollback Execution Result; example: Rollback Success; - Rollback Execution Time; example: 2026/9/16 23:30:00; diff --git a/src/a2a_t/prompt_resources/templates/Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1/zh-CN/template.md b/src/a2a_t/prompt_resources/templates/Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1/zh-CN/template.md index b7649209..a6870250 100644 --- a/src/a2a_t/prompt_resources/templates/Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1/zh-CN/template.md +++ b/src/a2a_t/prompt_resources/templates/Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1/zh-CN/template.md @@ -1,29 +1,23 @@ -## 操作类型(Operation Type) - -{{操作类型}}(必填) +## 操作类型(Operation Type) +{{操作类型}}(必填) 要求: - 1. 请提供操作类型,取值范围:创建、修改 -## 任务类型(Task Type) +## 任务类型(Task Type) 无线智能备电管理 ## 任务描述(Task Description) - {{任务描述}}(必填) 要求: - 1. 基于<任务对象>、<任务上下文> 进行无线智能备电管理,达成<任务目标>中定义的备电目标,按照<预期输出>中定义的结构返回任务处理结果 ## 任务目标(Task Target) - {{任务目标}}(必填) 要求: - 1. 任务目标支持3种选项:创建新的分级下电任务、创建恢复任务、修改分级下电任务。其中,`创建恢复任务`用于回退已有的分级下电任务下发的配置。 这3种选项的具体要求如下: - 选择`创建新的分级下电任务`或`修改分级下电任务`时,需提供如下信息: @@ -31,15 +25,14 @@ - 选择`创建恢复任务`时,内容为: - 回退无线智能备电配置; -## 任务对象(Task Object) -{{任务对象}}(创建新的分级下电任务时必填,修改分级下电任务时选填,创建恢复任务时选填) +## 任务对象(Task Object) +{{任务对象}}(`创建新的分级下电任务`时必填,`修改分级下电任务`时选填,`创建恢复任务`时选填) 要求: - 1. 支持列表形式,列表中的每一项包含如下信息: - - 站点名称:需要执行备电任务的站点名称;举例:"龙岩新罗水晶澜庭-HRHH";(创建新的分级下电任务时必填,修改分级下电任务时选填,创建恢复任务时选填) - - 站点所包含的小区列表,可包含以下内容:(创建新的分级下电任务时选填,修改分级下电任务时选填,创建恢复任务时无需填写) + - 站点名称:需要执行备电任务的站点名称;举例:"龙岩新罗水晶澜庭-HRHH";(`创建新的分级下电任务`时必填,`修改分级下电任务`时选填,`创建恢复任务`时选填) + - 站点所包含的小区列表,可包含以下内容:(`创建新的分级下电任务`时选填,`修改分级下电任务`时选填,`创建恢复任务`时无需填写) - 小区标识:采用CGI;样例:"460-00-2136088-512"; - 小区保障等级;取值范围包括:重保、关键、一般;样例:"重保"; - 小区频段;样例:2.6GHz; @@ -59,16 +52,13 @@ - 460-00-2134161-515:一般,5G,2.6GHz - 460-00-2134161-516:一般,5G,2.6GHz -## 任务上下文(Task Context) - +## 任务上下文(Task Context) {{任务上下文}}(选填) -## 预期输出(Expected Output) - +## 预期输出(Expected Output) {{预期输出}}(选填) 要求: - 1. `创建新的分级下电任务`或`修改分级下电任务`时,提供如下内容: - 执行结果;取值范围包括:成功、失败;(必填) - 分别提供不做关断和执行关断的小区列表(必填) @@ -83,7 +73,7 @@ - 频段;样例:2.3GHz; - 小区的关断执行结果;样例:执行成功; - 执行关断的时间;样例:2026/9/16 21:42:09; - + 2. `创建恢复任务`时,提供如下内容: - 执行结果;取值范围包括:成功、失败;(必填) - 分别提供无需回退和完成回退操作的小区列表(必填) From 6e026ac7b3e97f7405214072f56f0dd47d4a3447 Mon Sep 17 00:00:00 2001 From: Welkin1027 Date: Fri, 23 Oct 2026 19:11:16 +0800 Subject: [PATCH 2/2] test(corpus): modify ran-intelligent-backup-battery-endurance modify/create input cases Signed-off-by: Welkin1027 --- .../input_case_from_text.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/a2a-t-corpus/suites/task/resources/ran-intelligent-backup-battery-endurance-create/input_case_from_text.json b/a2a-t-corpus/suites/task/resources/ran-intelligent-backup-battery-endurance-create/input_case_from_text.json index 2cea58ee..74435aa5 100644 --- a/a2a-t-corpus/suites/task/resources/ran-intelligent-backup-battery-endurance-create/input_case_from_text.json +++ b/a2a-t-corpus/suites/task/resources/ran-intelligent-backup-battery-endurance-create/input_case_from_text.json @@ -115,7 +115,7 @@ { "id": "TC00000002", "caseDimension": "02-关键信息缺失", - "caseDesc": "创建诉求仅含续航目标,缺少任务描述,required应拦截", + "caseDesc": "创建诉求仅含续航目标,缺少操作类型,required应拦截", "caseCategory": "异常", "input": [ {