Partager via


IAutoFunctionInvocationFilter.OnAutoFunctionInvocationAsync Method

Definition

Method which is called asynchronously before automatic function invocation.

public System.Threading.Tasks.Task OnAutoFunctionInvocationAsync (Microsoft.SemanticKernel.AutoFunctionInvocationContext context, Func<Microsoft.SemanticKernel.AutoFunctionInvocationContext,System.Threading.Tasks.Task> next);
abstract member OnAutoFunctionInvocationAsync : Microsoft.SemanticKernel.AutoFunctionInvocationContext * Func<Microsoft.SemanticKernel.AutoFunctionInvocationContext, System.Threading.Tasks.Task> -> System.Threading.Tasks.Task
Public Function OnAutoFunctionInvocationAsync (context As AutoFunctionInvocationContext, next As Func(Of AutoFunctionInvocationContext, Task)) As Task

Parameters

context
AutoFunctionInvocationContext

Instance of AutoFunctionInvocationContext with automatic function invocation details.

next
Func<AutoFunctionInvocationContext,Task>

Delegate to the next filter in pipeline or function invocation itself. If it's not invoked, next filter won't be invoked and function invocation will be skipped.

Returns

Applies to