IAutoFunctionInvocationFilter.OnAutoFunctionInvocationAsync 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 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.
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.