MistralAIToolCallBehavior.RequiredFunctions 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 that will provide the specified list of functions to the model.
public static Microsoft.SemanticKernel.Connectors.MistralAI.MistralAIToolCallBehavior RequiredFunctions (System.Collections.Generic.IEnumerable<Microsoft.SemanticKernel.KernelFunction> functions, bool autoInvoke = false);
static member RequiredFunctions : seq<Microsoft.SemanticKernel.KernelFunction> * bool -> Microsoft.SemanticKernel.Connectors.MistralAI.MistralAIToolCallBehavior
Public Shared Function RequiredFunctions (functions As IEnumerable(Of KernelFunction), Optional autoInvoke As Boolean = false) As MistralAIToolCallBehavior
Parameters
- functions
- IEnumerable<KernelFunction>
The functions that should be made available to the model.
- autoInvoke
- Boolean
true to attempt to automatically handle function call requests; otherwise, false.
Returns
The MistralAIToolCallBehavior that may be set into ToolCallBehavior to indicate that the specified functions should be made available to the model. The model is forced to call a function from the list of functions provided.