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

Function lookupSubagentDefinition

coderd/x/chatd/subagent_catalog.go:167–174  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

165}
166
167func lookupSubagentDefinition(id string) (subagentDefinition, bool) {
168 for _, def := range allSubagentDefinitions() {
169 if def.id == id {
170 return def, true
171 }
172 }
173 return subagentDefinition{}, false
174}
175
176func availableSubagentDefinitions(
177 ctx context.Context,

Callers 2

subagentDefinitionsByIDFunction · 0.85

Calls 1

allSubagentDefinitionsFunction · 0.85

Tested by

no test coverage detected