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

Method CycleAgentThinkingLevel

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

CycleAgentThinkingLevel advances the named agent's thinking-effort level to the next value in its provider's cycle (wrapping around), applies it as a runtime model override, and returns the newly selected level. Returns [ErrUnsupported] for runtimes that can't switch models (e.g. remote runtimes) or

(ctx context.Context, agentName string)

Source from the content-addressed store, hash-verified

142 // switch models (e.g. remote runtimes) or for models that don't
143 // support thinking-effort selection.
144 CycleAgentThinkingLevel(ctx context.Context, agentName string) (effort.Level, error)
145
146 // SetAgentThinkingLevel sets the named agent's thinking-effort level to
147 // the requested value, applies it as a runtime model override, and

Callers 3

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