getFactory static method

LLMProviderFactory<ChatCapability>? getFactory(
  1. String providerId
)

Get a registered provider factory

providerId - ID of the provider to get

Returns the factory or null if not found

Implementation

static LLMProviderFactory? getFactory(String providerId) {
  _ensureInitialized();
  return _factories[providerId];
}