ConfigureOptionsChatClient(IChatClient, Action<ChatOptions>) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the ConfigureOptionsChatClient class with the specified configure
callback.
public:
ConfigureOptionsChatClient(Microsoft::Extensions::AI::IChatClient ^ innerClient, Action<Microsoft::Extensions::AI::ChatOptions ^> ^ configure);
public ConfigureOptionsChatClient (Microsoft.Extensions.AI.IChatClient innerClient, Action<Microsoft.Extensions.AI.ChatOptions> configure);
new Microsoft.Extensions.AI.ConfigureOptionsChatClient : Microsoft.Extensions.AI.IChatClient * Action<Microsoft.Extensions.AI.ChatOptions> -> Microsoft.Extensions.AI.ConfigureOptionsChatClient
Public Sub New (innerClient As IChatClient, configure As Action(Of ChatOptions))
Parameters
- innerClient
- IChatClient
The inner client.
- configure
- Action<ChatOptions>
The delegate to invoke to configure the ChatOptions instance. It is passed a clone of the caller-supplied ChatOptions instance
(or a newly constructed instance if the caller-supplied instance is null
).
Remarks
The configure
delegate is passed either a new instance of ChatOptions if the caller didn't supply a ChatOptions instance, or a clone (via Clone() of the caller-supplied instance if one was supplied.