Class AutomaticFunctionCallingConfig.Builder
-
- All Implemented Interfaces:
public abstract class AutomaticFunctionCallingConfig.BuilderBuilder for AutomaticFunctionCallingConfig.
-
-
Constructor Summary
Constructors Constructor Description AutomaticFunctionCallingConfig.Builder()
-
Method Summary
Modifier and Type Method Description abstract AutomaticFunctionCallingConfig.Builderdisable(boolean disable)Setter for disable. AutomaticFunctionCallingConfig.BuilderclearDisable()Clears the value of disable field. abstract AutomaticFunctionCallingConfig.BuildermaximumRemoteCalls(Integer maximumRemoteCalls)Setter for maximumRemoteCalls. AutomaticFunctionCallingConfig.BuilderclearMaximumRemoteCalls()Clears the value of maximumRemoteCalls field. abstract AutomaticFunctionCallingConfig.BuilderignoreCallHistory(boolean ignoreCallHistory)Setter for ignoreCallHistory. AutomaticFunctionCallingConfig.BuilderclearIgnoreCallHistory()Clears the value of ignoreCallHistory field. abstract AutomaticFunctionCallingConfigbuild()-
-
Method Detail
-
disable
abstract AutomaticFunctionCallingConfig.Builder disable(boolean 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.
-
clearDisable
@CanIgnoreReturnValue() AutomaticFunctionCallingConfig.Builder clearDisable()
Clears the value of disable field.
-
maximumRemoteCalls
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.
-
clearMaximumRemoteCalls
@CanIgnoreReturnValue() AutomaticFunctionCallingConfig.Builder clearMaximumRemoteCalls()
Clears the value of maximumRemoteCalls field.
-
ignoreCallHistory
abstract AutomaticFunctionCallingConfig.Builder ignoreCallHistory(boolean 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.
-
clearIgnoreCallHistory
@CanIgnoreReturnValue() AutomaticFunctionCallingConfig.Builder clearIgnoreCallHistory()
Clears the value of ignoreCallHistory field.
-
build
abstract AutomaticFunctionCallingConfig build()
-
-
-
-