Table of Contents

Interface IModelProvider

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

Creates clients and metadata for one language model provider family.

public interface IModelProvider

Properties

DefaultEndpoint

Gets the default API endpoint, or null for in-process providers.

DefaultIsLocalEndpoint

Gets the provider's default endpoint locality, or null for endpoint-based detection.

DefaultModel

Gets the default model identifier, or null when the user must choose one.

SupportsEmbedding

Gets whether this provider supports embeddings.

Type

Gets the provider type handled by this implementation.

Methods

CreateClientAsync(ModelProviderConfig, string?, CancellationToken)

Creates a chat client for the supplied configuration.

CreateEmbeddingGeneratorAsync(ModelProviderConfig, string?, CancellationToken)

Creates an embedding generator for the supplied configuration.

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.

TestAsync(ModelProviderConfig, string?, CancellationToken)

Tests the supplied provider configuration.