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

Method SetAgentThinkingLevel

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

SetAgentThinkingLevel sets the named agent's thinking-effort level to the requested value, applies it as a runtime model override, and returns the applied level. The level must be one the current model supports. Returns [ErrUnsupported] for runtimes that can't switch models (e.g. remote runtimes) or

(ctx context.Context, agentName string, level effort.Level)

Source from the content-addressed store, hash-verified

150 // models (e.g. remote runtimes) or for models that don't support
151 // thinking-effort selection.
152 SetAgentThinkingLevel(ctx context.Context, agentName string, level effort.Level) (effort.Level, error)
153
154 // AvailableModels returns the models the user can pick from in the
155 // /model picker. Returns nil for runtimes that don't expose model

Callers 3

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