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

Method SetCurrentAgent

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

SetCurrentAgent sets the currently active agent for subsequent user messages

(ctx context.Context, agentName string)

Source from the content-addressed store, hash-verified

49 CurrentAgentName(ctx context.Context) string
50 // SetCurrentAgent sets the currently active agent for subsequent user messages
51 SetCurrentAgent(ctx context.Context, agentName string) error
52 // CurrentAgentTools returns the tools for the active agent
53 CurrentAgentTools(ctx context.Context) ([]tools.Tool, error)
54 // CurrentAgentToolsetStatuses returns lifecycle status for each toolset of

Callers 4

PrepareUserMessageFunction · 0.65
SetCurrentAgentMethod · 0.65
SwitchAgentMethod · 0.65
runRuntimeContractFunction · 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 2

SetCurrentAgentMethod · 0.52
runRuntimeContractFunction · 0.52