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

Function WithAgentConnFunc

codersdk/toolsdk/toolsdk.go:107–111  ·  view source on GitHub ↗

WithAgentConnFunc overrides how workspace tools open logical connections to workspace agents.

(agentConnFn workspacesdk.AgentConnFunc)

Source from the content-addressed store, hash-verified

105// WithAgentConnFunc overrides how workspace tools open logical connections to
106// workspace agents.
107func WithAgentConnFunc(agentConnFn workspacesdk.AgentConnFunc) func(*Deps) {
108 return func(d *Deps) {
109 d.agentConnFn = agentConnFn
110 }
111}
112
113// openAgentConn opens a ready workspace agent session for workspace inputs in
114// [owner/]workspace[.agent] format.

Callers 2

mcpHTTPHandlerMethod · 0.92
TestToolsFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestToolsFunction · 0.74