MCPcopy Index your code
hub / github.com/docker/docker-agent / WithInstructions

Function WithInstructions

pkg/teamloader/instructions.go:9–18  ·  view source on GitHub ↗
(inner tools.ToolSet, instruction string)

Source from the content-addressed store, hash-verified

7)
8
9func WithInstructions(inner tools.ToolSet, instruction string) tools.ToolSet {
10 if instruction == "" {
11 return inner
12 }
13
14 return &replaceInstruction{
15 ToolSet: inner,
16 instruction: instruction,
17 }
18}
19
20type replaceInstruction struct {
21 tools.ToolSet

Callers 5

getToolsForAgentFunction · 0.85
forkSkillToolSetsFunction · 0.85
TestWithInstructions_addFunction · 0.85

Calls

no outgoing calls

Tested by 3

TestWithInstructions_addFunction · 0.68