Share via


AIFunction.InvokeCoreAsync(AIFunctionArguments, CancellationToken) Method

Definition

Invokes the AIFunction and returns its result.

protected:
 abstract System::Threading::Tasks::ValueTask<System::Object ^> InvokeCoreAsync(Microsoft::Extensions::AI::AIFunctionArguments ^ arguments, System::Threading::CancellationToken cancellationToken);
protected abstract System.Threading.Tasks.ValueTask<object?> InvokeCoreAsync(Microsoft.Extensions.AI.AIFunctionArguments arguments, System.Threading.CancellationToken cancellationToken);
abstract member InvokeCoreAsync : Microsoft.Extensions.AI.AIFunctionArguments * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<obj>
Protected MustOverride 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