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

Struct AutoModelFallbackError

pkg/config/auto.go:80–86  ·  view source on GitHub ↗

AutoModelFallbackError is returned when auto model selection fails because no model could be initialized (no API keys configured and no usable Docker Model Runner model, e.g. DMR not installed or the pull was declined).

Source from the content-addressed store, hash-verified

78// no model could be initialized (no API keys configured and no usable Docker
79// Model Runner model, e.g. DMR not installed or the pull was declined).
80type AutoModelFallbackError struct {
81 // Cause is the underlying provider-initialization error, when available
82 // (for example "model pull declined by user"). It is surfaced in the
83 // message so the user understands why selection fell through, and exposed
84 // via Unwrap for errors.Is/As callers.
85 Cause error
86}
87
88// pullErrorSummarizer is implemented by provider errors (e.g. DMR pull
89// failures) that already carry their own multi-line actionable guidance. When

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected