Package com.google.genai.types
Class AutomaticFunctionCallingConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.AutomaticFunctionCallingConfig
The configuration for automatic function calling.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for AutomaticFunctionCallingConfig. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Instantiates a builder for AutomaticFunctionCallingConfig.disable()
Whether to disable automatic function calling.Deserializes a JSON string to a AutomaticFunctionCallingConfig object.If automatic function calling is enabled, whether to ignore call history to the response.If automatic function calling is enabled, maximum number of remote calls for automatic function calling.Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
AutomaticFunctionCallingConfig
public AutomaticFunctionCallingConfig()
-
-
Method Details
-
disable
Whether to disable automatic function calling. If not set or set to False, will enable automatic function calling. If set to True, will disable automatic function calling. -
maximumRemoteCalls
If automatic function calling is enabled, maximum number of remote calls for automatic function calling. This number should be a positive integer. If not set, SDK will set maximum number of remote calls to 10. -
ignoreCallHistory
If automatic function calling is enabled, whether to ignore call history to the response. If not set, SDK will set ignore_call_history to false, and will append the call history to GenerateContentResponse.automatic_function_calling_history. -
builder
Instantiates a builder for AutomaticFunctionCallingConfig. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a AutomaticFunctionCallingConfig object.
-