FunctionInvokingChatClient.InvokeFunctionAsync 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.
Invokes the function asynchronously.
protected:
virtual System::Threading::Tasks::Task<System::Object ^> ^ InvokeFunctionAsync(Microsoft::Extensions::AI::FunctionInvokingChatClient::FunctionInvocationContext ^ context, System::Threading::CancellationToken cancellationToken);
protected virtual System.Threading.Tasks.Task<object?> InvokeFunctionAsync (Microsoft.Extensions.AI.FunctionInvokingChatClient.FunctionInvocationContext context, System.Threading.CancellationToken cancellationToken);
abstract member InvokeFunctionAsync : Microsoft.Extensions.AI.FunctionInvokingChatClient.FunctionInvocationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<obj>
override this.InvokeFunctionAsync : Microsoft.Extensions.AI.FunctionInvokingChatClient.FunctionInvocationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<obj>
Protected Overridable Function InvokeFunctionAsync (context As FunctionInvokingChatClient.FunctionInvocationContext, cancellationToken As CancellationToken) As Task(Of Object)
Parameters
The function invocation context detailing the function to be invoked and its arguments along with additional request information.
- cancellationToken
- CancellationToken
The CancellationToken to monitor for cancellation requests. The default is None.
Returns
The result of the function invocation. This may be null if the function invocation returned null.
Applies to
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.