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

Method SupportsModelSwitching

pkg/runtime/runtime.go:163–163  ·  view source on GitHub ↗

SupportsModelSwitching reports whether SetAgentModel and AvailableModels are wired for this runtime. Use it to gate UI affordances (e.g. show /model in the menu) without paying the cost of AvailableModels.

()

Source from the content-addressed store, hash-verified

161 // affordances (e.g. show /model in the menu) without paying the
162 // cost of AvailableModels.
163 SupportsModelSwitching() bool
164
165 // OnToolsChanged registers a handler invoked outside of any RunStream
166 // when a toolset reports a tool list change (e.g. after an MCP

Callers 13

handleOpenModelPickerMethod · 0.65
AvailableModelsMethod · 0.65
applyRunModelOverrideMethod · 0.65
applyStoredOverridesFunction · 0.65
SetSessionAgentModelMethod · 0.65

Implementers 7

queueTestRuntimepkg/tui/page/chat/queue_test.go
cycleThinkingRuntimepkg/leantui/update_test.go
mockRuntimepkg/cli/runner_test.go
mockRuntimepkg/app/app_test.go
LocalRuntimepkg/runtime/runtime.go
mockRuntimepkg/runtime/commands_test.go
RemoteRuntimepkg/runtime/remote_runtime.go

Calls

no outgoing calls

Tested by

no test coverage detected