MCPcopy
hub / github.com/docker/docker-agent / WithModel

Function WithModel

pkg/agent/opts.go:56–60  ·  view source on GitHub ↗
(model provider.Provider)

Source from the content-addressed store, hash-verified

54}
55
56func WithModel(model provider.Provider) Opt {
57 return func(a *Agent) {
58 a.models = append(a.models, model)
59 }
60}
61
62// WithFallbackModel adds a fallback model to try if the primary model fails.
63// For retryable errors (5xx, timeouts), the same model is retried with backoff.

Calls

no outgoing calls