function_choice_behavior Module
Classes
FunctionChoiceBehavior |
Class that controls function choice behavior. Attributes: enable_kernel_functions: Enable kernel functions. max_auto_invoke_attempts: The maximum number of auto invoke attempts. filters: Filters for the function choice behavior. Available options are: excluded_plugins,
Properties: auto_invoke_kernel_functions: Check if the kernel functions should be auto-invoked. Determined as max_auto_invoke_attempts > 0. Methods: configure: Configures the settings for the function call behavior, the default version in this class, does nothing, use subclasses for different behaviors. Class methods: Auto: Returns FunctionChoiceBehavior class with auto_invoke enabled, and the desired functions based on either the specified filters or the full qualified names. The model will decide which function to use, if any.
Note: This class is experimental and may change in the future. Create a new model by parsing and validating input data from keyword arguments. Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model. self is explicitly positional-only to allow self as a field name. |
Enums
FunctionChoiceType |
The type of function choice behavior. Note: This class is experimental and may change in the future. |