Class ComputerUse

java.lang.Object
com.google.genai.gaos.models.interactions.ComputerUse
All Implemented Interfaces:
Tool

public class ComputerUse extends Object implements Tool
ComputerUse

A tool that can be used by the model to interact with the computer.

  • Constructor Details

  • Method Details

    • disabledSafetyPolicies

      public Optional<List<DisabledSafetyPolicy>> disabledSafetyPolicies()
      Optional. Disabled safety policies for computer use.
    • enablePromptInjectionDetection

      public Optional<Boolean> enablePromptInjectionDetection()
      Whether enable the prompt injection detection check on computer-use request.
    • environment

      public Optional<EnvironmentEnum> environment()
      The environment being operated.
    • excludedPredefinedFunctions

      public Optional<List<String>> excludedPredefinedFunctions()
      The list of predefined functions that are excluded from the model call.
    • type

      public String type()
      Specified by:
      type in interface Tool
    • builder

      public static ComputerUse.Builder builder()
    • withDisabledSafetyPolicies

      public ComputerUse withDisabledSafetyPolicies(@Nullable List<DisabledSafetyPolicy> disabledSafetyPolicies)
      Optional. Disabled safety policies for computer use.
    • withEnablePromptInjectionDetection

      public ComputerUse withEnablePromptInjectionDetection(@Nullable Boolean enablePromptInjectionDetection)
      Whether enable the prompt injection detection check on computer-use request.
    • withEnvironment

      public ComputerUse withEnvironment(@Nullable EnvironmentEnum environment)
      The environment being operated.
    • withExcludedPredefinedFunctions

      public ComputerUse withExcludedPredefinedFunctions(@Nullable List<String> excludedPredefinedFunctions)
      The list of predefined functions that are excluded from the model call.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object