Package com.google.genai.types
Class ToolCall.Builder
java.lang.Object
com.google.genai.types.ToolCall.Builder
- Enclosing class:
- ToolCall
Builder for ToolCall.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ToolCall.BuilderSetter for args.abstract ToolCallbuild()Clears the value of args field.clearId()Clears the value of id field.Clears the value of toolType field.abstract ToolCall.BuilderSetter for id.abstract ToolCall.BuilderSetter for toolType.toolType(ToolType.Known knownType) Setter for toolType given a known enum.Setter for toolType given a string.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
Setter for id.id: Unique identifier of the tool call. The server returns the tool response with the matching `id`.
-
clearId
Clears the value of id field. -
toolType
Setter for toolType.toolType: The type of tool that was called.
-
clearToolType
Clears the value of toolType field. -
toolType
Setter for toolType given a known enum.toolType: The type of tool that was called.
-
toolType
Setter for toolType given a string.toolType: The type of tool that was called.
-
args
Setter for args.args: The tool call arguments. Example: {"arg1": "value1", "arg2": "value2"}.
-
clearArgs
Clears the value of args field. -
build
-