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

Method Run

pkg/hooks/handler.go:26–26  ·  view source on GitHub ↗
(ctx context.Context, input []byte)

Source from the content-addressed store, hash-verified

24// handlers MUST NOT apply [Hook.GetTimeout] themselves.
25type Handler interface {
26 Run(ctx context.Context, input []byte) (HandlerResult, error)
27}
28
29// HandlerResult is the raw outcome of a [Handler.Run] call.

Callers 15

mainFunction · 0.65
TestParseFunction · 0.65
TestIsValidFunction · 0.65
TestForOpenAIFunction · 0.65
TestForAnthropicFunction · 0.65
TestBedrockTokensFunction · 0.65
TestForGemini3Function · 0.65
TestIsValidAdaptiveFunction · 0.65
TestSupportedLevelsFunction · 0.65
TestClampFunction · 0.65
TestNextSupportedLevelFunction · 0.65
TestStringFunction · 0.65

Implementers 13

queueTestRuntimepkg/tui/page/chat/queue_test.go
cycleThinkingRuntimepkg/leantui/update_test.go
mockRuntimepkg/cli/runner_test.go
Apppkg/app/app.go
mockRuntimepkg/app/app_test.go
LocalRuntimepkg/runtime/runtime.go
mockRuntimepkg/runtime/commands_test.go
RemoteRuntimepkg/runtime/remote_runtime.go
Runnerpkg/evaluation/eval.go
commandHandlerpkg/hooks/handler.go
builtinHandlerpkg/hooks/handler.go
modelHandlerpkg/hooks/model_handler.go

Calls

no outgoing calls

Tested by 15

TestParseFunction · 0.52
TestIsValidFunction · 0.52
TestForOpenAIFunction · 0.52
TestForAnthropicFunction · 0.52
TestBedrockTokensFunction · 0.52
TestForGemini3Function · 0.52
TestIsValidAdaptiveFunction · 0.52
TestSupportedLevelsFunction · 0.52
TestClampFunction · 0.52
TestNextSupportedLevelFunction · 0.52
TestStringFunction · 0.52
TestValidateFunction · 0.52