FunctionCallingConfig.Mode

public enum FunctionCallingConfig.Mode extends Enum


Configuration for dictating when the model should call the attached function.

Summary

Enum Values

ANY

The model always predicts a provided function call to answer every query.

AUTO

The default behavior for function calling.

NONE

The model will never predict a function call to answer a query.

Public methods

final @NonNull FunctionCallingConfig.Mode

Returns the enum constant of this type with the specified name.

final @NonNull FunctionCallingConfig.Mode[]

Returns an array containing the constants of this enum type, in the order they're declared.

Enum Values

ANY

FunctionCallingConfig.Mode FunctionCallingConfig.Mode.ANY

The model always predicts a provided function call to answer every query.

AUTO

FunctionCallingConfig.Mode FunctionCallingConfig.Mode.AUTO

The default behavior for function calling. The model calls functions to answer queries at its discretion

NONE

FunctionCallingConfig.Mode FunctionCallingConfig.Mode.NONE

The model will never predict a function call to answer a query. This can also be achieved by not passing any tools to the model.

Public methods

valueOf

public final @NonNull FunctionCallingConfig.Mode valueOf(@NonNull String value)

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Throws
kotlin.IllegalArgumentException kotlin.IllegalArgumentException

if this enum type has no constant with the specified name

values

public final @NonNull FunctionCallingConfig.Mode[] values()

Returns an array containing the constants of this enum type, in the order they're declared.

This method may be used to iterate over the constants.