Class FunctionCallingConfig

java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.FunctionCallingConfig

public abstract class FunctionCallingConfig extends JsonSerializable
Function calling config.
  • Constructor Details

    • FunctionCallingConfig

      public FunctionCallingConfig()
  • Method Details

    • mode

      public abstract Optional<FunctionCallingConfigMode> mode()
      Optional. Function calling mode.
    • allowedFunctionNames

      public abstract Optional<List<String>> allowedFunctionNames()
      Optional. Function names to call. Only set when the Mode is ANY. Function names should match [FunctionDeclaration.name]. With mode set to ANY, model will predict a function call from the set of function names provided.
    • builder

      public static FunctionCallingConfig.Builder builder()
      Instantiates a builder for FunctionCallingConfig.
    • toBuilder

      public abstract FunctionCallingConfig.Builder toBuilder()
      Creates a builder with the same values as this instance.
    • fromJson

      public static FunctionCallingConfig fromJson(String jsonString)
      Deserializes a JSON string to a FunctionCallingConfig object.