Condividi tramite


KernelFunctionSelectionStrategy(KernelFunction, Kernel) Constructor

Definition

Determines agent selection based on the evaluation of a KernelFunction.

public KernelFunctionSelectionStrategy (Microsoft.SemanticKernel.KernelFunction function, Microsoft.SemanticKernel.Kernel kernel);
new Microsoft.SemanticKernel.Agents.Chat.KernelFunctionSelectionStrategy : Microsoft.SemanticKernel.KernelFunction * Microsoft.SemanticKernel.Kernel -> Microsoft.SemanticKernel.Agents.Chat.KernelFunctionSelectionStrategy
Public Sub New (function As KernelFunction, kernel As Kernel)

Parameters

function
KernelFunction

A KernelFunction used for selection criteria

kernel
Kernel

A kernel instance with services for function execution.

Applies to