Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,17 @@ private StandardTemplates() {
/** Raw template URI of {@link #PRIVATE_LINE_COMPLAINT}: {@code Task-T/network-layer/private-line-complaint/v1}. */
public static final String PRIVATE_LINE_COMPLAINT_URI = PRIVATE_LINE_COMPLAINT.uri();

/** Task-T template for the ran-intelligent-backup-battery-endurance scenario. */
public static final TemplateUri RAN_INTELLIGENT_BACKUP_BATTERY_ENDURANCE =
TemplateUri.of(TASK_EXTENSION_NAME, NETWORK_LAYER_SEGMENT, "ran-intelligent-backup-battery-endurance");

/**
* Raw template URI of {@link #RAN_INTELLIGENT_BACKUP_BATTERY_ENDURANCE}:
* {@code Task-T/network-layer/ran-intelligent-backup-battery-endurance/v1}.
*/
public static final String RAN_INTELLIGENT_BACKUP_BATTERY_ENDURANCE_URI =
RAN_INTELLIGENT_BACKUP_BATTERY_ENDURANCE.uri();

/** Notification-T template for the subscribe-incident scenario. */
public static final TemplateUri SUBSCRIBE_INCIDENT =
TemplateUri.of(NOTIFICATION_EXTENSION_NAME, NETWORK_LAYER_SEGMENT, "subscribe-incident");
Expand Down Expand Up @@ -147,10 +158,12 @@ private StandardTemplates() {
public static final String NEGOTIATION_ABORT_URI = NEGOTIATION_ABORT.uri();

/** All built-in Task-T templates. */
public static final List<TemplateUri> TASK = List.of(ENERGY_SAVING, PRIVATE_LINE_COMPLAINT);
public static final List<TemplateUri> TASK = List.of(
ENERGY_SAVING, PRIVATE_LINE_COMPLAINT, RAN_INTELLIGENT_BACKUP_BATTERY_ENDURANCE);

/** Raw template URIs of all built-in Task-T templates. */
public static final List<String> TASK_URIS = List.of(ENERGY_SAVING_URI, PRIVATE_LINE_COMPLAINT_URI);
public static final List<String> TASK_URIS = List.of(
ENERGY_SAVING_URI, PRIVATE_LINE_COMPLAINT_URI, RAN_INTELLIGENT_BACKUP_BATTERY_ENDURANCE_URI);

/** All built-in Notification-T templates. */
public static final List<TemplateUri> NOTIFICATION = List.of(SUBSCRIBE_INCIDENT, SERVICE_RECOVERY);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ class StandardTemplatesStringConstantsTest {
void should_keepTypedAndStringConstantsInLockstep() {
assertEquals(StandardTemplates.ENERGY_SAVING.uri(), StandardTemplates.ENERGY_SAVING_URI);
assertEquals(StandardTemplates.PRIVATE_LINE_COMPLAINT.uri(), StandardTemplates.PRIVATE_LINE_COMPLAINT_URI);
assertEquals(
StandardTemplates.RAN_INTELLIGENT_BACKUP_BATTERY_ENDURANCE.uri(),
StandardTemplates.RAN_INTELLIGENT_BACKUP_BATTERY_ENDURANCE_URI);
assertEquals(StandardTemplates.SUBSCRIBE_INCIDENT.uri(), StandardTemplates.SUBSCRIBE_INCIDENT_URI);
assertEquals(StandardTemplates.SERVICE_RECOVERY.uri(), StandardTemplates.SERVICE_RECOVERY_URI);
assertEquals(
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
[
{
"id": "TC00000001",
"caseDimension": "01-意图清晰参数完整",
"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",
"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 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. 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"
}
},
"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": {
"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": "" }
}
]
},
{
"id": "TC00000002",
"caseDimension": "01-意图清晰参数完整",
"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",
"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 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"
}
},
"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": {
"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": "" }
}
]
}
]
Loading
Loading