Package com.google.genai.types
Class ComputerUse
-
- All Implemented Interfaces:
public abstract class ComputerUse extends JsonSerializable
Tool to support computer use.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classComputerUse.BuilderBuilder for ComputerUse.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description ComputerUse()
-
Method Summary
Modifier and Type Method Description abstract Optional<Environment>environment()Required. abstract Optional<List<String>>excludedPredefinedFunctions()By default, predefined functions are included in the final model call. static ComputerUse.Builderbuilder()Instantiates a builder for ComputerUse. abstract ComputerUse.BuildertoBuilder()Creates a builder with the same values as this instance. static ComputerUsefromJson(String jsonString)Deserializes a JSON string to a ComputerUse object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
environment
abstract Optional<Environment> environment()
Required. The environment being operated.
-
excludedPredefinedFunctions
abstract Optional<List<String>> 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
static ComputerUse.Builder builder()
Instantiates a builder for ComputerUse.
-
toBuilder
abstract ComputerUse.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static ComputerUse fromJson(String jsonString)
Deserializes a JSON string to a ComputerUse object.
-
-
-
-