Taal

AIFunction.InvokeCoreAsync(AIFunctionArguments, CancellationToken) Methode

Definitie

Roept de AIFunction aan en retourneert het resultaat.

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

De argumenten die moeten worden doorgegeven aan de aanroep van de functie.

cancellationToken
CancellationToken

De CancellationToken te controleren op annuleringsaanvragen.

Retouren

Het resultaat van de uitvoering van de functie.

Van toepassing op