Package com.google.genai.types
Class ComputerUse
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.ComputerUse
A tool that enables the model to interact directly with a computer environment.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ComputerUse.Builderbuilder()Instantiates a builder for ComputerUse.abstract Optional<List<SafetyPolicy>>Optional.Optional.abstract Optional<Environment>Required.Optional.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
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
ComputerUse
public ComputerUse()
-
-
Method Details
-
environment
Required. The target environment where the computer use tool operates. -
excludedPredefinedFunctions
Optional. A list of predefined functions to explicitly exclude from the model call. By default, [predefined functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are included. Excluding functions allows for a more restricted action space or custom definitions for predefined functions. -
enablePromptInjectionDetection
Optional. Whether to enable the prompt injection detection check on the computer use request. -
disabledSafetyPolicies
Optional. A list of safety policies to disable for the computer use tool. -
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.
-