Table of Contents

Method GetAvailableModelsAsync

Namespace
Oscova.Agents.Llm
Assembly
Oscova.Agents.dll

GetAvailableModelsAsync(ModelProviderConfig, string?, CancellationToken)

Returns the available models for the supplied configuration, including any metadata the provider can report (context window, capabilities). Providers that expose only ids return Oscova.Agents.Llm.ModelDescriptor instances with null metadata.

Task<IReadOnlyList<ModelDescriptor>> GetAvailableModelsAsync(ModelProviderConfig config, string? apiKey = null, CancellationToken cancellationToken = default)

Parameters

config ModelProviderConfig
apiKey string?
cancellationToken CancellationToken

Returns

Task<IReadOnlyList<ModelDescriptor>>