Freigeben über


PromptExecutionSettings.FunctionChoiceBehavior Property

Definition

Gets or sets the behavior defining the way functions are chosen by LLM and how they are invoked by AI connectors.

[System.Text.Json.Serialization.JsonPropertyName("function_choice_behavior")]
public Microsoft.SemanticKernel.FunctionChoiceBehavior? FunctionChoiceBehavior { get; set; }
[<System.Text.Json.Serialization.JsonPropertyName("function_choice_behavior")>]
member this.FunctionChoiceBehavior : Microsoft.SemanticKernel.FunctionChoiceBehavior with get, set
Public Property FunctionChoiceBehavior As FunctionChoiceBehavior

Property Value

Attributes

Remarks

For all the behaviors that presume the model to call functions, auto-invoke can be specified. If LLM call a function and auto-invoke enabled, SK will attempt to resolve that function from the functions available, and if found, rather than returning the response back to the caller, it will invoke the function automatically. The intermediate messages will be retained in the provided ChatHistory.

Applies to