AIFunction.InvokeCoreAsync(AIFunctionArguments, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.