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

Function toolNames

coderd/x/chatd/mcpclient/mcpclient_test.go:415–421  ·  view source on GitHub ↗

--- helpers ---

(tools []fantasy.AgentTool)

Source from the content-addressed store, hash-verified

413// --- helpers ---
414
415func toolNames(tools []fantasy.AgentTool) []string {
416 names := make([]string, 0, len(tools))
417 for _, t := range tools {
418 names = append(names, t.Info().Name)
419 }
420 return names
421}
422
423func findTool(tools []fantasy.AgentTool, name string) fantasy.AgentTool {
424 for _, t := range tools {

Calls 1

InfoMethod · 0.45

Tested by

no test coverage detected