MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / openclawModelRefMap

Function openclawModelRefMap

agent/app/service/agents_utils.go:960–974  ·  view source on GitHub ↗
(conf map[string]interface{})

Source from the content-addressed store, hash-verified

958}
959
960func openclawModelRefMap(conf map[string]interface{}) map[string]interface{} {
961 agentsMap, ok := conf["agents"].(map[string]interface{})
962 if !ok {
963 return nil
964 }
965 defaultsMap, ok := agentsMap["defaults"].(map[string]interface{})
966 if !ok {
967 return nil
968 }
969 modelMap, ok := defaultsMap["model"].(map[string]interface{})
970 if !ok {
971 return nil
972 }
973 return modelMap
974}
975
976func buildOpenclawResolvedModelIDMap(account *model.AgentAccount, accountModels []dto.AgentAccountModel) (map[string]string, error) {
977 result := make(map[string]string, len(accountModels))

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected