mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-17 09:24:36 +08:00
Simplify agent skill routing and config updates
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user