Class FunctionCallingConfig.Builder
-
- All Implemented Interfaces:
public abstract class FunctionCallingConfig.BuilderBuilder for FunctionCallingConfig.
-
-
Constructor Summary
Constructors Constructor Description FunctionCallingConfig.Builder()
-
Method Summary
Modifier and Type Method Description abstract FunctionCallingConfig.BuilderallowedFunctionNames(List<String> allowedFunctionNames)Setter for allowedFunctionNames. FunctionCallingConfig.BuilderallowedFunctionNames(Array<String> allowedFunctionNames)Setter for allowedFunctionNames. FunctionCallingConfig.BuilderclearAllowedFunctionNames()Clears the value of allowedFunctionNames field. abstract FunctionCallingConfig.Buildermode(FunctionCallingConfigMode mode)Setter for mode. FunctionCallingConfig.BuilderclearMode()Clears the value of mode field. FunctionCallingConfig.Buildermode(FunctionCallingConfigMode.Known knownType)Setter for mode given a known enum. FunctionCallingConfig.Buildermode(String mode)Setter for mode given a string. abstract FunctionCallingConfig.BuilderstreamFunctionCallArguments(boolean streamFunctionCallArguments)Setter for streamFunctionCallArguments. FunctionCallingConfig.BuilderclearStreamFunctionCallArguments()Clears the value of streamFunctionCallArguments field. abstract FunctionCallingConfigbuild()-
-
Method Detail
-
allowedFunctionNames
abstract FunctionCallingConfig.Builder allowedFunctionNames(List<String> allowedFunctionNames)
Setter for allowedFunctionNames.
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.
-
allowedFunctionNames
@CanIgnoreReturnValue() FunctionCallingConfig.Builder allowedFunctionNames(Array<String> allowedFunctionNames)
Setter for allowedFunctionNames.
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.
-
clearAllowedFunctionNames
@CanIgnoreReturnValue() FunctionCallingConfig.Builder clearAllowedFunctionNames()
Clears the value of allowedFunctionNames field.
-
mode
abstract FunctionCallingConfig.Builder mode(FunctionCallingConfigMode mode)
Setter for mode.
mode: Optional. Function calling mode.
-
clearMode
@CanIgnoreReturnValue() FunctionCallingConfig.Builder clearMode()
Clears the value of mode field.
-
mode
@CanIgnoreReturnValue() FunctionCallingConfig.Builder mode(FunctionCallingConfigMode.Known knownType)
Setter for mode given a known enum.
mode: Optional. Function calling mode.
-
mode
@CanIgnoreReturnValue() FunctionCallingConfig.Builder mode(String mode)
Setter for mode given a string.
mode: Optional. Function calling mode.
-
streamFunctionCallArguments
abstract FunctionCallingConfig.Builder streamFunctionCallArguments(boolean streamFunctionCallArguments)
Setter for streamFunctionCallArguments.
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.
-
clearStreamFunctionCallArguments
@CanIgnoreReturnValue() FunctionCallingConfig.Builder clearStreamFunctionCallArguments()
Clears the value of streamFunctionCallArguments field.
-
build
abstract FunctionCallingConfig build()
-
-
-
-