Package com.google.genai.types
Class ComputerUse
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.ComputerUse
Tool to support computer use.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ComputerUse.Builderbuilder()Instantiates a builder for ComputerUse.abstract Optional<Environment>Required.By default, predefined functions are included in the final model call.static ComputerUseDeserializes a JSON string to a ComputerUse object.abstract ComputerUse.BuilderCreates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
ComputerUse
public ComputerUse()
-
-
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 ComputerUse. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a ComputerUse object.
-