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

Function subagentDefinitionsByID

coderd/x/chatd/subagent_catalog.go:157–165  ·  view source on GitHub ↗
(ids ...string)

Source from the content-addressed store, hash-verified

155}
156
157func subagentDefinitionsByID(ids ...string) []subagentDefinition {
158 defs := make([]subagentDefinition, 0, len(ids))
159 for _, id := range ids {
160 if def, ok := lookupSubagentDefinition(id); ok {
161 defs = append(defs, def)
162 }
163 }
164 return defs
165}
166
167func lookupSubagentDefinition(id string) (subagentDefinition, bool) {
168 for _, def := range allSubagentDefinitions() {

Callers 1

Calls 1

lookupSubagentDefinitionFunction · 0.85

Tested by

no test coverage detected