Compartilhar via


ChatClientBuilderChatClientExtensions.AsBuilder(IChatClient) Method

Definition

Creates a new ChatClientBuilder using innerClient as its inner client.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::AI::ChatClientBuilder ^ AsBuilder(Microsoft::Extensions::AI::IChatClient ^ innerClient);
public static Microsoft.Extensions.AI.ChatClientBuilder AsBuilder (this Microsoft.Extensions.AI.IChatClient innerClient);
static member AsBuilder : Microsoft.Extensions.AI.IChatClient -> Microsoft.Extensions.AI.ChatClientBuilder
<Extension()>
Public Function AsBuilder (innerClient As IChatClient) As ChatClientBuilder

Parameters

innerClient
IChatClient

The client to use as the inner client.

Returns

The new ChatClientBuilder instance.

Remarks

This method is equivalent to using the ChatClientBuilder constructor directly, specifying innerClient as the inner client.

Applies to