( ctx context.Context, p *Server, currentChat database.Chat, )
| 174 | } |
| 175 | |
| 176 | func 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 | |
| 191 | func availableSubagentTypeIDs( |
| 192 | ctx context.Context, |
no test coverage detected