Share via


FunctionInvokingChatClient.InvokeFunctionAsync Method

Definition

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

cancellationToken
CancellationToken

Returns

Applies to