GeminiPromptExecutionSettings.ToolCallBehavior Property
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 or sets the behavior for how tool calls are handled.
public Microsoft.SemanticKernel.Connectors.Google.GeminiToolCallBehavior? ToolCallBehavior { get; set; }
member this.ToolCallBehavior : Microsoft.SemanticKernel.Connectors.Google.GeminiToolCallBehavior with get, set
Public Property ToolCallBehavior As GeminiToolCallBehavior
Property Value
Remarks
- To disable all tool calling, set the property to null (the default).
- To allow the model to request one of any number of functions, set the property to an instance returned from EnableFunctions(IEnumerable<GeminiFunction>, Boolean), called with a list of the functions available.
- To allow the model to request one of any of the functions in the supplied Kernel, set the property to EnableKernelFunctions if the client should simply send the information about the functions and not handle the response in any special manner, or AutoInvokeKernelFunctions if the client should attempt to automatically invoke the function and send the result back to the service.