OpenAIClientProvider Class

Definition

Provides an OpenAI.OpenAIClient for use by OpenAIAssistantAgent.

public sealed class OpenAIClientProvider
type OpenAIClientProvider = class
Public NotInheritable Class OpenAIClientProvider
Inheritance
OpenAIClientProvider

Properties

Name Description
AssistantClient

Gets an active assistant client instance.

Client

Gets an active client instance.

Methods

Name Description
ForAzureOpenAI(ApiKeyCredential, Uri, HttpClient)

Produces an OpenAIClientProvider based on AzureOpenAIClient.

ForAzureOpenAI(TokenCredential, Uri, HttpClient)

Produces an OpenAIClientProvider based on AzureOpenAIClient.

ForOpenAI(ApiKeyCredential, Uri, HttpClient)

Produces an OpenAIClientProvider based on OpenAI.OpenAIClient.

ForOpenAI(Uri, HttpClient)

Produces an OpenAIClientProvider based on OpenAI.OpenAIClient.

FromClient(OpenAIClient)

Provides a client instance directly.

Applies to