Table of Contents

Class GeminiToolConfiguration

The Tool configuration containing parameters for specifying Tool use in the request.

public class GeminiToolConfiguration
Inheritance
GeminiToolConfiguration
Extension Methods

Fields

FunctionCallingConfig

Function calling config.

public GeminiFunctionCallingConfiguration FunctionCallingConfig

Field Value

GeminiFunctionCallingConfiguration

Methods

GetConfiguration(GeminiFunctionCallingMode, string[])

Creates a new GeminiToolConfiguration.

public static GeminiToolConfiguration GetConfiguration(GeminiFunctionCallingMode callingMode, string[] allowedFunctions = null)

Parameters

callingMode GeminiFunctionCallingMode

Specifies the mode in which function calling should execute.

allowedFunctions string[]

A set of function names that, when provided, limits the functions the model will call.

Returns

GeminiToolConfiguration