Class AutomaticFunctionCallingConfig
-
- All Implemented Interfaces:
public abstract class AutomaticFunctionCallingConfig extends JsonSerializable
The configuration for automatic function calling.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classAutomaticFunctionCallingConfig.BuilderBuilder for AutomaticFunctionCallingConfig.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description AutomaticFunctionCallingConfig()
-
Method Summary
Modifier and Type Method Description abstract Optional<Boolean>disable()Whether to disable automatic function calling. abstract Optional<Integer>maximumRemoteCalls()If automatic function calling is enabled, maximum number of remote calls for automatic function calling. abstract Optional<Boolean>ignoreCallHistory()If automatic function calling is enabled, whether to ignore call history to the response. static AutomaticFunctionCallingConfig.Builderbuilder()Instantiates a builder for AutomaticFunctionCallingConfig. abstract AutomaticFunctionCallingConfig.BuildertoBuilder()Creates a builder with the same values as this instance. static AutomaticFunctionCallingConfigfromJson(String jsonString)Deserializes a JSON string to a AutomaticFunctionCallingConfig object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
disable
abstract Optional<Boolean> 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
abstract Optional<Integer> 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
abstract Optional<Boolean> 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
static AutomaticFunctionCallingConfig.Builder builder()
Instantiates a builder for AutomaticFunctionCallingConfig.
-
toBuilder
abstract AutomaticFunctionCallingConfig.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static AutomaticFunctionCallingConfig fromJson(String jsonString)
Deserializes a JSON string to a AutomaticFunctionCallingConfig object.
-
-
-
-