Class FunctionCall.Builder
- Enclosing class:
- FunctionCall
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract FunctionCall.BuilderSetter for args.abstract FunctionCallbuild()Clears the value of args field.clearId()Clears the value of id field.Clears the value of name field.Clears the value of partialArgs field.Clears the value of willContinue field.abstract FunctionCall.BuilderSetter for id.abstract FunctionCall.BuilderSetter for name.partialArgs(PartialArg... partialArgs) Setter for partialArgs.partialArgs(PartialArg.Builder... partialArgsBuilders) Setter for partialArgs builder.abstract FunctionCall.BuilderpartialArgs(List<PartialArg> partialArgs) Setter for partialArgs.abstract FunctionCall.BuilderwillContinue(boolean willContinue) Setter for willContinue.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
Setter for id.id: The unique id of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`.
-
clearId
Clears the value of id field. -
args
Setter for args.args: Optional. The function parameters and values in JSON object format. See [FunctionDeclaration.parameters] for parameter details.
-
clearArgs
Clears the value of args field. -
name
Setter for name.name: Optional. The name of the function to call. Matches [FunctionDeclaration.name].
-
clearName
Clears the value of name field. -
partialArgs
Setter for partialArgs.partialArgs: Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally. This field is not supported in Gemini API.
-
partialArgs
Setter for partialArgs.partialArgs: Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally. This field is not supported in Gemini API.
-
partialArgs
@CanIgnoreReturnValue public FunctionCall.Builder partialArgs(PartialArg.Builder... partialArgsBuilders) Setter for partialArgs builder.partialArgs: Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally. This field is not supported in Gemini API.
-
clearPartialArgs
Clears the value of partialArgs field. -
willContinue
Setter for willContinue.willContinue: Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow. This field is not supported in Gemini API.
-
clearWillContinue
Clears the value of willContinue field. -
build
-