KernelFunctionTerminationStrategy(KernelFunction, Kernel) Constructor
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.
Signals termination based on the evaluation of a KernelFunction.
public KernelFunctionTerminationStrategy (Microsoft.SemanticKernel.KernelFunction function, Microsoft.SemanticKernel.Kernel kernel);
new Microsoft.SemanticKernel.Agents.Chat.KernelFunctionTerminationStrategy : Microsoft.SemanticKernel.KernelFunction * Microsoft.SemanticKernel.Kernel -> Microsoft.SemanticKernel.Agents.Chat.KernelFunctionTerminationStrategy
Public Sub New (function As KernelFunction, kernel As Kernel)
Parameters
- function
- KernelFunction
A KernelFunction used for termination criteria
- kernel
- Kernel
A kernel instance with services for function execution.