Table of Contents

Class GeminiFunctionCallingConfiguration

Configuration for specifying function calling behavior.

public class GeminiFunctionCallingConfiguration
Inheritance
GeminiFunctionCallingConfiguration
Extension Methods

Fields

AllowedFunctionNames

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

public string[] AllowedFunctionNames

Field Value

string[]

Remarks

This should only be set when Mode is Any.
Function names should match [Name]. With mode set to Any,
model will predict a function call from the set of function names provided.

Mode

Specifies the mode in which function calling should execute. If unspecified, the default value will be set to AUTO.

public GeminiFunctionCallingMode Mode

Field Value

GeminiFunctionCallingMode