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.
| 20 | // state is driven purely by the StartableToolSet wrapper (started vs not) — the |
| 21 | // same path the built-in filesystem/shell toolsets take. |
| 22 | type toolListToolset struct { |
| 23 | desc string |
| 24 | names []string |
| 25 | } |
| 26 | |
| 27 | func (s *toolListToolset) Tools(context.Context) ([]tools.Tool, error) { |
| 28 | out := make([]tools.Tool, 0, len(s.names)) |
nothing calls this directly
no outgoing calls
no test coverage detected