Package com.google.genai.types
Class FunctionCallingConfig.Builder
java.lang.Object
com.google.genai.types.FunctionCallingConfig.Builder
- Enclosing class:
- FunctionCallingConfig
Builder for FunctionCallingConfig.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowedFunctionNames(String... allowedFunctionNames) Setter for allowedFunctionNames.abstract FunctionCallingConfig.BuilderallowedFunctionNames(List<String> allowedFunctionNames) Setter for allowedFunctionNames.abstract FunctionCallingConfigbuild()abstract FunctionCallingConfig.BuilderSetter for mode.mode(FunctionCallingConfigMode.Known knownType) Setter for mode given a known enum.Setter for mode given a string.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
mode
Setter for mode.mode: Optional. Function calling mode.
-
mode
@CanIgnoreReturnValue public FunctionCallingConfig.Builder mode(FunctionCallingConfigMode.Known knownType) Setter for mode given a known enum.mode: Optional. Function calling mode.
-
mode
Setter for mode given a string.mode: Optional. Function calling mode.
-
allowedFunctionNames
public abstract FunctionCallingConfig.Builder allowedFunctionNames(List<String> allowedFunctionNames) Setter for allowedFunctionNames.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.
-
allowedFunctionNames
Setter for allowedFunctionNames.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.
-
build
-