MCPcopy Index your code
hub / github.com/coder/coder / WithSubAgentClient

Function WithSubAgentClient

agent/agentcontainers/api.go:186–190  ·  view source on GitHub ↗

WithSubAgentClient sets the SubAgentClient implementation to use. This is used to list, create, and delete devcontainer agents.

(client SubAgentClient)

Source from the content-addressed store, hash-verified

184// WithSubAgentClient sets the SubAgentClient implementation to use.
185// This is used to list, create, and delete devcontainer agents.
186func WithSubAgentClient(client SubAgentClient) Option {
187 return func(api *API) {
188 api.subAgentClient.Store(&client)
189 }
190}
191
192// WithSubAgentURL sets the agent URL for the sub-agent for
193// communicating with the control plane.

Callers 5

handleManifestMethod · 0.92
TestAPIFunction · 0.92

Calls 1

StoreMethod · 0.45

Tested by 4

TestAPIFunction · 0.74