Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/docker/docker-agent
/ Wrap
Function
Wrap
pkg/tools/codemode/codemode.go:31–35 ·
view source on GitHub ↗
(toolsets ...tools.ToolSet)
Source
from the content-addressed store, hash-verified
29
`
30
31
func
Wrap(toolsets ...tools.ToolSet) tools.ToolSet {
32
return
&codeModeTool{
33
toolsets: toolsets,
34
}
35
}
36
37
type
codeModeTool
struct
{
38
toolsets []tools.ToolSet
Callers
10
getToolsForAgent
Function · 0.92
TestCodeModeTool_StartStop
Function · 0.85
TestCodeModeTool_CallHello
Function · 0.85
TestCodeModeTool_CallEcho
Function · 0.85
TestCodeModeTool_StartRollsBackOnError
Function · 0.85
TestCodeModeTool_StartStopWrappedToolSet
Function · 0.85
TestCodeModeTool_SuccessNoToolCalls
Function · 0.85
TestCodeModeTool_FailureIncludesToolCalls
Function · 0.85
TestCodeModeTool_FailureIncludesToolError
Function · 0.85
TestCodeModeTool_FailureIncludesToolArguments
Function · 0.85
Calls
no outgoing calls
Tested by
9
TestCodeModeTool_StartStop
Function · 0.68
TestCodeModeTool_CallHello
Function · 0.68
TestCodeModeTool_CallEcho
Function · 0.68
TestCodeModeTool_StartRollsBackOnError
Function · 0.68
TestCodeModeTool_StartStopWrappedToolSet
Function · 0.68
TestCodeModeTool_SuccessNoToolCalls
Function · 0.68
TestCodeModeTool_FailureIncludesToolCalls
Function · 0.68
TestCodeModeTool_FailureIncludesToolError
Function · 0.68
TestCodeModeTool_FailureIncludesToolArguments
Function · 0.68