Share via


DelegatingAIFunction.InvokeCoreAsync Method

Definition

Invokes the AIFunction and returns its result.

protected:
 override System::Threading::Tasks::ValueTask<System::Object ^> InvokeCoreAsync(Microsoft::Extensions::AI::AIFunctionArguments ^ arguments, System::Threading::CancellationToken cancellationToken);
protected override System.Threading.Tasks.ValueTask<object?> InvokeCoreAsync(Microsoft.Extensions.AI.AIFunctionArguments arguments, System.Threading.CancellationToken cancellationToken);
override this.InvokeCoreAsync : Microsoft.Extensions.AI.AIFunctionArguments * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<obj>
Protected Overrides Function InvokeCoreAsync (arguments As AIFunctionArguments, cancellationToken As CancellationToken) As ValueTask(Of Object)

Parameters

arguments
AIFunctionArguments

The arguments to pass to the function's invocation.

cancellationToken
CancellationToken

The CancellationToken to monitor for cancellation requests.

Returns

The result of the function's execution.

Applies to