FunctionChoiceBehavior.None 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.
Gets an instance of the FunctionChoiceBehavior that provides either all of the Kernel's plugins' functions to AI model to call or specified ones but instructs it not to call any of them. The model may use the provided function in the response it generates. E.g. the model may describe which functions it would call and with what parameter values. This response is useful if the user should first validate what functions the model will use.
public static Microsoft.SemanticKernel.FunctionChoiceBehavior None (System.Collections.Generic.IEnumerable<Microsoft.SemanticKernel.KernelFunction>? functions = default, Microsoft.SemanticKernel.FunctionChoiceBehaviorOptions? options = default);
static member None : seq<Microsoft.SemanticKernel.KernelFunction> * Microsoft.SemanticKernel.FunctionChoiceBehaviorOptions -> Microsoft.SemanticKernel.FunctionChoiceBehavior
Public Shared Function None (Optional functions As IEnumerable(Of KernelFunction) = Nothing, Optional options As FunctionChoiceBehaviorOptions = Nothing) As FunctionChoiceBehavior
Parameters
- functions
- IEnumerable<KernelFunction>
Functions to provide to the model. If null, all of the Kernel's plugins' functions are provided to the model. If empty, no functions are provided to the model.
- options
- FunctionChoiceBehaviorOptions
The behavior options.
Returns
An instance of one of the FunctionChoiceBehavior.