Share via


ChatClientBuilder.Use Method

Definition

Overloads

Use(IChatClient)
Use(Func<IChatClient,IChatClient>)
Use(Func<IServiceProvider,IChatClient,IChatClient>)

Use(IChatClient)

public:
 Microsoft::Extensions::AI::IChatClient ^ Use(Microsoft::Extensions::AI::IChatClient ^ innerClient);
public Microsoft.Extensions.AI.IChatClient Use (Microsoft.Extensions.AI.IChatClient innerClient);
member this.Use : Microsoft.Extensions.AI.IChatClient -> Microsoft.Extensions.AI.IChatClient
Public Function Use (innerClient As IChatClient) As IChatClient

Parameters

innerClient
IChatClient

Returns

Applies to

Use(Func<IChatClient,IChatClient>)

public:
 Microsoft::Extensions::AI::ChatClientBuilder ^ Use(Func<Microsoft::Extensions::AI::IChatClient ^, Microsoft::Extensions::AI::IChatClient ^> ^ clientFactory);
public Microsoft.Extensions.AI.ChatClientBuilder Use (Func<Microsoft.Extensions.AI.IChatClient,Microsoft.Extensions.AI.IChatClient> clientFactory);
member this.Use : Func<Microsoft.Extensions.AI.IChatClient, Microsoft.Extensions.AI.IChatClient> -> Microsoft.Extensions.AI.ChatClientBuilder
Public Function Use (clientFactory As Func(Of IChatClient, IChatClient)) As ChatClientBuilder

Parameters

clientFactory
Func<IChatClient,IChatClient>

Returns

Applies to

Use(Func<IServiceProvider,IChatClient,IChatClient>)

public:
 Microsoft::Extensions::AI::ChatClientBuilder ^ Use(Func<IServiceProvider ^, Microsoft::Extensions::AI::IChatClient ^, Microsoft::Extensions::AI::IChatClient ^> ^ clientFactory);
public Microsoft.Extensions.AI.ChatClientBuilder Use (Func<IServiceProvider,Microsoft.Extensions.AI.IChatClient,Microsoft.Extensions.AI.IChatClient> clientFactory);
member this.Use : Func<IServiceProvider, Microsoft.Extensions.AI.IChatClient, Microsoft.Extensions.AI.IChatClient> -> Microsoft.Extensions.AI.ChatClientBuilder
Public Function Use (clientFactory As Func(Of IServiceProvider, IChatClient, IChatClient)) As ChatClientBuilder

Parameters

Returns

Applies to