Package com.google.genai.types
Class AutomaticFunctionCallingConfig.Builder
java.lang.Object
com.google.genai.types.AutomaticFunctionCallingConfig.Builder
- Enclosing class:
- AutomaticFunctionCallingConfig
Builder for AutomaticFunctionCallingConfig.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract AutomaticFunctionCallingConfig
build()
disable
(boolean disable) Setter for disable.ignoreCallHistory
(boolean ignoreCallHistory) Setter for ignoreCallHistory.maximumRemoteCalls
(Integer maximumRemoteCalls) Setter for maximumRemoteCalls.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
disable
Setter for disable.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
public abstract AutomaticFunctionCallingConfig.Builder maximumRemoteCalls(Integer maximumRemoteCalls) Setter for maximumRemoteCalls.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
Setter for ignoreCallHistory.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.
-
build
-