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

Function availableSubagentDefinitions

coderd/x/chatd/subagent_catalog.go:176–189  ·  view source on GitHub ↗
(
	ctx context.Context,
	p *Server,
	currentChat database.Chat,
)

Source from the content-addressed store, hash-verified

174}
175
176func availableSubagentDefinitions(
177 ctx context.Context,
178 p *Server,
179 currentChat database.Chat,
180) []subagentDefinition {
181 defs := allSubagentDefinitions()
182 available := make([]subagentDefinition, 0, len(defs))
183 for _, def := range defs {
184 if def.unavailableReasonText(ctx, p, currentChat) == "" {
185 available = append(available, def)
186 }
187 }
188 return available
189}
190
191func availableSubagentTypeIDs(
192 ctx context.Context,

Callers 2

availableSubagentTypeIDsFunction · 0.85

Calls 2

allSubagentDefinitionsFunction · 0.85
unavailableReasonTextMethod · 0.80

Tested by

no test coverage detected