FunctionInvokingChatClientBuilderExtensions.UseFunctionInvocation Method
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.
Enables automatic function call invocation on the chat pipeline.
public static Microsoft.Extensions.AI.ChatClientBuilder UseFunctionInvocation (this Microsoft.Extensions.AI.ChatClientBuilder builder, Action<Microsoft.Extensions.AI.FunctionInvokingChatClient>? configure = default);
static member UseFunctionInvocation : Microsoft.Extensions.AI.ChatClientBuilder * Action<Microsoft.Extensions.AI.FunctionInvokingChatClient> -> Microsoft.Extensions.AI.ChatClientBuilder
<Extension()>
Public Function UseFunctionInvocation (builder As ChatClientBuilder, Optional configure As Action(Of FunctionInvokingChatClient) = Nothing) As ChatClientBuilder
Parameters
- builder
- ChatClientBuilder
The ChatClientBuilder being used to build the chat pipeline.
- configure
- Action<FunctionInvokingChatClient>
An optional callback that can be used to configure the FunctionInvokingChatClient instance.
Returns
The supplied builder
.
Remarks
This works by adding an instance of FunctionInvokingChatClient with default options.
Applies to
Συνεργαστείτε μαζί μας στο GitHub
Μπορείτε να βρείτε την πηγή για αυτό το περιεχόμενο στο GitHub, όπου μπορείτε επίσης να δημιουργήσετε και να εξετάσετε ζητήματα και αιτήματα έλξης. Για περισσότερες πληροφορίες, ανατρέξτε στον οδηγό συνεργατών.