Class ComputerUse

java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.ComputerUse

public abstract class ComputerUse extends JsonSerializable
Tool to support computer use.
  • Constructor Details

    • ComputerUse

      public ComputerUse()
  • Method Details

    • environment

      public abstract Optional<Environment> environment()
      Required. The environment being operated.
    • excludedPredefinedFunctions

      public 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

      public static ComputerUse.Builder builder()
      Instantiates a builder for ComputerUse.
    • toBuilder

      public abstract ComputerUse.Builder toBuilder()
      Creates a builder with the same values as this instance.
    • fromJson

      public static ComputerUse fromJson(String jsonString)
      Deserializes a JSON string to a ComputerUse object.