MCPcopy Create free account
hub / github.com/InferCore/InferCore / buildAdapterMap

Function buildAdapterMap

cmd/infercore/main.go:349–357  ·  view source on GitHub ↗
(cfg *config.Config)

Source from the content-addressed store, hash-verified

347}
348
349func buildAdapterMap(cfg *config.Config) map[string]interfaces.BackendAdapter {
350 out := make(map[string]interfaces.BackendAdapter)
351 for _, b := range cfg.Backends {
352 if a, ok := adaptersreg.NewBackend(b); ok {
353 out[b.Name] = a
354 }
355 }
356 return out
357}
358
359func evalCmd() *cobra.Command {
360 var dataset, baseURL, pipeline, apiKey string

Callers 1

replayCmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected