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

Struct toolListToolset

pkg/runtime/agent_inspector_test.go:22–25  ·  view source on GitHub ↗

toolListToolset is a minimal ToolSet that reports a fixed list of tools and a description. It implements neither Statable nor Startable, so its lifecycle state is driven purely by the StartableToolSet wrapper (started vs not) — the same path the built-in filesystem/shell toolsets take.

Source from the content-addressed store, hash-verified

20// state is driven purely by the StartableToolSet wrapper (started vs not) — the
21// same path the built-in filesystem/shell toolsets take.
22type toolListToolset struct {
23 desc string
24 names []string
25}
26
27func (s *toolListToolset) Tools(context.Context) ([]tools.Tool, error) {
28 out := make([]tools.Tool, 0, len(s.names))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected