Freigeben über


IFunctionInvocationFilter.OnFunctionInvocationAsync Method

Definition

Method which is called asynchronously before function invocation.

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

Parameters

context
FunctionInvocationContext

Instance of FunctionInvocationContext with function invocation details.

next
Func<FunctionInvocationContext,Task>

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

Returns

Applies to