Class ToolComputerUse

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

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

    • ToolComputerUse

      public ToolComputerUse()
  • 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 ToolComputerUse.Builder builder()
      Instantiates a builder for ToolComputerUse.
    • toBuilder

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

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