Refine agent strategy routing and config handling

This commit is contained in:
lky-spec
2026-04-28 19:37:44 +08:00
parent fc6c42ac11
commit 2d45e7ab15
22 changed files with 1321 additions and 968 deletions

View File

@@ -203,9 +203,9 @@ func buildSkillRoutingSummary(lang string, skillNames []string) string {
}
case "strategy_management":
if lang == "zh" {
parts = append(parts, "策略模板不能直接启动;只有绑定了该策略的交易员可以启动。")
parts = append(parts, "策略模板创建后应出现在策略列表/策略页。用户没问运行时,不要主动延伸到交易员绑定。")
} else {
parts = append(parts, "Strategy templates do not run directly; only traders bound to a strategy can run.")
parts = append(parts, "After creation, strategy templates should appear in the strategy list/page. Do not proactively bring up trader binding unless the user asks to run it.")
}
}
lines = append(lines, fmt.Sprintf("- %s: %s", name, strings.Join(cleanStringList(parts), " ")))
@@ -237,9 +237,9 @@ func buildSkillDefinitionSummary(lang string, skillNames []string) string {
}
case "strategy_management":
if lang == "zh" {
parts = append(parts, "策略模板不能直接启动;只有绑定了该策略的交易员可以启动。")
parts = append(parts, "策略模板创建后应出现在策略列表/策略页。用户没问运行时,不要主动延伸到交易员绑定。")
} else {
parts = append(parts, "Strategy templates do not run directly; only traders bound to a strategy can run.")
parts = append(parts, "After creation, strategy templates should appear in the strategy list/page. Do not proactively bring up trader binding unless the user asks to run it.")
}
}
lines = append(lines, fmt.Sprintf("- %s: %s", name, strings.Join(cleanStringList(parts), " ")))