MCPcopy Index your code
hub / github.com/docker/docker-agent / WithToolsetRegistry

Function WithToolsetRegistry

pkg/teamloader/teamloader.go:70–75  ·  view source on GitHub ↗

WithToolsetRegistry allows using a custom toolset registry instead of the default.

(registry ToolsetRegistry)

Source from the content-addressed store, hash-verified

68
69// WithToolsetRegistry allows using a custom toolset registry instead of the default.
70func WithToolsetRegistry(registry ToolsetRegistry) Opt {
71 return func(opts *loadOptions) error {
72 opts.toolsetRegistry = registry
73 return nil
74 }
75}
76
77// WithProviderRegistry allows using a custom model provider registry instead of the default.
78func WithProviderRegistry(registry *provider.Registry) Opt {

Callers 5

NewFunction · 0.92
InitializeMethod · 0.92
OptsFunction · 0.92
loadExternalAgentFunction · 0.85
withTestProviderRegistryFunction · 0.85

Calls

no outgoing calls

Tested by 1

withTestProviderRegistryFunction · 0.68