Interface IProviderRegistry
Detects and registers AI providers, builds kernels on demand.
public interface IProviderRegistry
Methods
BuildKernel(ProviderModelInfo)
Builds a Microsoft.SemanticKernel.Kernel configured for the given model.
Kernel BuildKernel(ProviderModelInfo model)
Parameters
modelProviderModelInfo
Returns
- Kernel
DetectProvidersAsync(bool, CancellationToken)
Probes all known provider backends, optionally forcing a cache refresh.
Task<IReadOnlyList<ProviderInfo>> DetectProvidersAsync(bool forceRefresh, CancellationToken ct = default)
Parameters
forceRefreshboolctCancellationToken
Returns
DetectProvidersAsync(CancellationToken)
Probes all known provider backends and returns availability info.
Task<IReadOnlyList<ProviderInfo>> DetectProvidersAsync(CancellationToken ct = default)
Parameters
Returns
GetDetector(string)
Returns the IProviderDetector for the given provider name.
IProviderDetector? GetDetector(string providerName)
Parameters
providerNamestring
Returns
GetModelsAsync(CancellationToken)
Returns all models across all available providers.
Task<IReadOnlyList<ProviderModelInfo>> GetModelsAsync(CancellationToken ct = default)