(conf map[string]interface{})
| 958 | } |
| 959 | |
| 960 | func 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 | |
| 976 | func buildOpenclawResolvedModelIDMap(account *model.AgentAccount, accountModels []dto.AgentAccountModel) (map[string]string, error) { |
| 977 | result := make(map[string]string, len(accountModels)) |
no outgoing calls
no test coverage detected