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
configModelProviderConfigapiKeystring?cancellationTokenCancellationToken
Returns
- ValueTask<IChatClient>