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

Method AvailableModels

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

AvailableModels returns the models the user can pick from in the model picker. Returns nil for runtimes that don't expose model switching; see SupportsModelSwitching for a cheap pre-check.

(ctx context.Context)

Source from the content-addressed store, hash-verified

155 // /model picker. Returns nil for runtimes that don't expose model
156 // switching; see SupportsModelSwitching for a cheap pre-check.
157 AvailableModels(ctx context.Context) []ModelChoice
158
159 // SupportsModelSwitching reports whether SetAgentModel and
160 // AvailableModels are wired for this runtime. Use it to gate UI

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