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 classBuilder for FunctionCallingConfig. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOptional.builder()Instantiates a builder for FunctionCallingConfig.static FunctionCallingConfigDeserializes a JSON string to a FunctionCallingConfig object.abstract Optional<FunctionCallingConfigMode>mode()Optional.Optional.abstract FunctionCallingConfig.BuilderCreates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
setMaxReadLength, 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. -
streamFunctionCallArguments
Optional. When set to true, arguments of a single function call will be streamed out in multiple parts/contents/responses. Partial parameter results will be returned in the [FunctionCall.partial_args] field. This field is not supported in Gemini API. -
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.
-