FunctionCallingConfig

public final class FunctionCallingConfig


Contains configuration for function calling from the model. This can be used to force function calling predictions or disable them.

Summary

Nested types

public enum FunctionCallingConfig.Mode extends Enum

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

Public fields

final @NonNull FunctionCallingConfig.Mode

The function calling mode of the model

Public fields

mode

public final @NonNull FunctionCallingConfig.Mode mode

The function calling mode of the model

Public constructors

FunctionCallingConfig

public FunctionCallingConfig(@NonNull FunctionCallingConfig.Mode mode)
Parameters
@NonNull FunctionCallingConfig.Mode mode

The function calling mode of the model