Taal

AIFunction.InvokeAsync(AIFunctionArguments, CancellationToken) Methode

Definitie

Roept de AIFunction aan en retourneert het resultaat.

public System.Threading.Tasks.ValueTask<object?> InvokeAsync(Microsoft.Extensions.AI.AIFunctionArguments? arguments = default, System.Threading.CancellationToken cancellationToken = default);
member this.InvokeAsync : Microsoft.Extensions.AI.AIFunctionArguments * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<obj>
Public Function InvokeAsync (Optional arguments As AIFunctionArguments = Nothing, Optional cancellationToken As CancellationToken = Nothing) 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. De standaardwaarde is None.

Retouren

Het resultaat van de uitvoering van de functie.

Van toepassing op