Table of Contents

Method CreateClientAsync

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

CreateClientAsync(ModelProviderConfig, string?, CancellationToken)

Creates a chat client for the supplied configuration.

ValueTask<IChatClient> CreateClientAsync(ModelProviderConfig config, string? apiKey = null, CancellationToken cancellationToken = default)

Parameters

config ModelProviderConfig
apiKey string?
cancellationToken CancellationToken

Returns

ValueTask<IChatClient>