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

Function isToolActive

coderd/x/chatd/chatloop/chatloop.go:1831–1833  ·  view source on GitHub ↗
(name string, activeTools []string)

Source from the content-addressed store, hash-verified

1829}
1830
1831func isToolActive(name string, activeTools []string) bool {
1832 return len(activeTools) == 0 || slices.Contains(activeTools, name)
1833}
1834
1835// mergeNewToolNames returns activeTools augmented with any tool names
1836// from newTools that are not present in oldTools and not already in

Callers 2

executeSingleToolFunction · 0.85
buildToolDefinitionsFunction · 0.85

Calls 1

ContainsMethod · 0.45

Tested by

no test coverage detected