Partager via


KernelFunctionTerminationStrategy(KernelFunction, Kernel) Constructor

Definition

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.

Applies to