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

Method SetAgentModel

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

SetAgentModel sets a model override for the named agent. modelRef can be: - "" (empty) to clear the override and use the agent's default model - A model name from the config (e.g., "my_fast_model") - An inline spec (e.g., "openai/gpt-4o") Returns [ErrUnsupported] for runtimes that don't expose model

(ctx context.Context, agentName, modelRef string)

Source from the content-addressed store, hash-verified

134 // Returns [ErrUnsupported] for runtimes that don't expose model
135 // switching (e.g. remote runtimes, where the server owns the choice).
136 SetAgentModel(ctx context.Context, agentName, modelRef string) error
137
138 // CycleAgentThinkingLevel advances the named agent's thinking-effort
139 // level to the next value in its provider's cycle (wrapping around),

Callers 6

SetCurrentAgentModelMethod · 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