IFunctionInvocationFilter.OnFunctionInvocationAsync 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.
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.
Delegate to the next filter in pipeline or function itself. If it's not invoked, next filter or function won't be invoked.