functionCallingMode property

GoogleFunctionCallingMode? functionCallingMode
final

Controls how the model decides when to call functions.

Example:

GoogleChatModelOptions(
  functionCallingMode: GoogleFunctionCallingMode.any,
  allowedFunctionNames: ['get_weather', 'get_forecast'],
)

Implementation

final GoogleFunctionCallingMode? functionCallingMode;