findProvidersWithAllCapabilities method

List<String> findProvidersWithAllCapabilities(
  1. Set<LLMCapability> required
)

Find providers that support all required capabilities

Implementation

List<String> findProvidersWithAllCapabilities(Set<LLMCapability> required) {
  return _capabilities.entries
      .where((entry) => required.every((cap) => entry.value.contains(cap)))
      .map((entry) => entry.key)
      .toList();
}