| | |
| | | @Component |
| | | public class AiPromptUtils { |
| | | |
| | | private static final String AUTO_TUNE_RULE_SNAPSHOT_INSTRUCTIONS = |
| | | "Step 4 读取调参规则\n" + |
| | | "- 必须读取 snapshot.ruleSnapshot 中的 minValue、maxValue、maxStep、cooldownMinutes、dynamicMaxValue 和 dynamicMaxSource。\n" + |
| | | "- 每个目标参数的新值与当前值差值不能超过对应 maxStep;outTaskLimit 的上调还必须受 stationOutBufferCapacities[targetId] 约束。"; |
| | | |
| | | public String getDefaultPrompt(String sceneCode) { |
| | | AiPromptScene scene = AiPromptScene.ofCode(sceneCode); |
| | | if (scene == null) { |
| | |
| | | "- maxOutTask:对应 asr_bas_crnp.max_out_task / asr_bas_dual_crnp.max_out_task\n" + |
| | | "- maxInTask:对应 asr_bas_crnp.max_in_task / asr_bas_dual_crnp.max_in_task\n\n" + |
| | | "注意:asr_bas_station.out_buffer_capacity 是人工维护的出库缓存容量,只用于证明 outTaskLimit 可上调上限,Agent 不允许修改该字段;增大 outTaskLimit 时建议值不得超过对应站点 outBufferCapacity。\n\n" + |
| | | "Step 4 读取调参规则\n" + |
| | | "- 必须读取 snapshot.ruleSnapshot 中的 minValue、maxValue、maxStep、cooldownMinutes、dynamicMaxValue 和 dynamicMaxSource。\n" + |
| | | "- 每个目标参数的新值与当前值差值不能超过对应 maxStep;outTaskLimit 的上调还必须受 stationOutBufferCapacities[targetId] 约束。\n\n" + |
| | | AUTO_TUNE_RULE_SNAPSHOT_INSTRUCTIONS + "\n\n" + |
| | | "Step 5 提交变更\n" + |
| | | "- 先通过 wcs_local_dispatch_apply_auto_tune_changes 执行 dry-run。\n" + |
| | | "- dry-run 通过后才允许通过同一工具实际应用。\n" + |