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

Method RestartToolset

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

RestartToolset finds the named toolset on the active agent and asks its supervisor to drop the current session and reconnect. Returns an error if no toolset matches name or the toolset does not implement tools.Restartable.

(ctx context.Context, name string)

Source from the content-addressed store, hash-verified

62 // an error if no toolset matches name or the toolset does not
63 // implement tools.Restartable.
64 RestartToolset(ctx context.Context, name string) error
65 // EmitStartupInfo emits initial agent, team, and toolset information for immediate display.
66 // When sess is non-nil and contains token data, a TokenUsageEvent is also emitted
67 // so the UI can display context usage percentage on session restore.

Callers 3

handleRestartToolsetMethod · 0.65
RestartToolsetMethod · 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 1

runRuntimeContractFunction · 0.52