Package com.google.genai.types
Class ToolComputerUse
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.ToolComputerUse
Tool to support computer use.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for ToolComputerUse. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ToolComputerUse.Builder
builder()
Instantiates a builder for ToolComputerUse.abstract Optional<Environment>
Required.By default, predefined functions are included in the final model call.static ToolComputerUse
Deserializes a JSON string to a ToolComputerUse object.abstract ToolComputerUse.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
ToolComputerUse
public ToolComputerUse()
-
-
Method Details
-
environment
Required. The environment being operated. -
excludedPredefinedFunctions
By default, predefined functions are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions. -
builder
Instantiates a builder for ToolComputerUse. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a ToolComputerUse object.
-