Simplify agent skill routing and config updates

This commit is contained in:
lky-spec
2026-04-26 22:22:12 +08:00
parent cfd91069d3
commit ce3a8582af
12 changed files with 325 additions and 925 deletions

View File

@@ -46,9 +46,7 @@ func normalizeAtomicSkillAction(skill, action string) string {
return action
case "query_binding":
return "query_detail"
case "update":
return "update_bindings"
case "update_bindings", "configure_strategy", "configure_exchange", "configure_model":
case "update", "update_bindings", "configure_strategy", "configure_exchange", "configure_model":
return action
}
case "exchange_management":
@@ -57,9 +55,7 @@ func normalizeAtomicSkillAction(skill, action string) string {
return "query_list"
case "query_detail":
return "query_detail"
case "update":
return "update_name"
case "update_name", "update_status":
case "update", "update_name", "update_status":
return action
}
case "model_management":
@@ -68,9 +64,7 @@ func normalizeAtomicSkillAction(skill, action string) string {
return "query_list"
case "query_detail":
return "query_detail"
case "update":
return "update_name"
case "update_name", "update_endpoint", "update_status":
case "update", "update_name", "update_endpoint", "update_status":
return action
}
case "strategy_management":
@@ -79,9 +73,7 @@ func normalizeAtomicSkillAction(skill, action string) string {
return "query_list"
case "query_detail":
return "query_detail"
case "update":
return "update_name"
case "update_name", "update_config", "update_prompt":
case "update", "update_name", "update_config", "update_prompt":
return action
}
}