Package com.google.genai.types
Class ToolResponse.Builder
java.lang.Object
com.google.genai.types.ToolResponse.Builder
- Enclosing class:
- ToolResponse
Builder for ToolResponse.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ToolResponsebuild()clearId()Clears the value of id field.Clears the value of response field.Clears the value of toolType field.abstract ToolResponse.BuilderSetter for id.abstract ToolResponse.BuilderSetter for response.abstract ToolResponse.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: The identifier of the tool call this response is for.
-
clearId
Clears the value of id field. -
toolType
Setter for toolType.toolType: The type of tool that was called, matching the tool_type in the corresponding ToolCall.
-
clearToolType
Clears the value of toolType field. -
toolType
Setter for toolType given a known enum.toolType: The type of tool that was called, matching the tool_type in the corresponding ToolCall.
-
toolType
Setter for toolType given a string.toolType: The type of tool that was called, matching the tool_type in the corresponding ToolCall.
-
response
Setter for response.response: The tool response.
-
clearResponse
Clears the value of response field. -
build
-