Package com.google.genai.types
Class FunctionCallingConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.FunctionCallingConfig
Function calling config.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for FunctionCallingConfig. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOptional.builder()
Instantiates a builder for FunctionCallingConfig.static FunctionCallingConfig
Deserializes a JSON string to a FunctionCallingConfig object.abstract Optional<FunctionCallingConfigMode>
mode()
Optional.abstract FunctionCallingConfig.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
FunctionCallingConfig
public FunctionCallingConfig()
-
-
Method Details
-
mode
Optional. Function calling mode. -
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
Instantiates a builder for FunctionCallingConfig. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a FunctionCallingConfig object.
-