DelegatingAIFunction.InvokeCoreAsync 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:
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.