FunctionCallingConfig

class FunctionCallingConfig


The configuration that specifies the function calling behavior.

See the static methods in the companion object for the list of available behaviors.

Summary

Public companion functions

FunctionCallingConfig
any(allowedFunctionNames: List<String>?)

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

FunctionCallingConfig

The default behavior for function calling.

FunctionCallingConfig

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

Public companion functions

any

fun any(allowedFunctionNames: List<String>? = null): FunctionCallingConfig

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

auto

fun auto(): FunctionCallingConfig

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

none

fun none(): FunctionCallingConfig

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.