Class ComputerUse
java.lang.Object
com.google.genai.gaos.models.interactions.ComputerUse
- All Implemented Interfaces:
Tool
ComputerUse
A tool that can be used by the model to interact with the computer.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionComputerUse(List<DisabledSafetyPolicy> disabledSafetyPolicies, Boolean enablePromptInjectionDetection, EnvironmentEnum environment, List<String> excludedPredefinedFunctions) -
Method Summary
Modifier and TypeMethodDescriptionstatic ComputerUse.Builderbuilder()Optional.Whether enable the prompt injection detection check on computer-use request.The environment being operated.booleanThe list of predefined functions that are excluded from the model call.inthashCode()toString()type()withDisabledSafetyPolicies(List<DisabledSafetyPolicy> disabledSafetyPolicies) Optional.withEnablePromptInjectionDetection(Boolean enablePromptInjectionDetection) Whether enable the prompt injection detection check on computer-use request.withEnvironment(EnvironmentEnum environment) The environment being operated.withExcludedPredefinedFunctions(List<String> excludedPredefinedFunctions) The list of predefined functions that are excluded from the model call.
-
Constructor Details
-
ComputerUse
public ComputerUse(@Nullable List<DisabledSafetyPolicy> disabledSafetyPolicies, @Nullable Boolean enablePromptInjectionDetection, @Nullable EnvironmentEnum environment, @Nullable List<String> excludedPredefinedFunctions) -
ComputerUse
public ComputerUse()
-
-
Method Details
-
disabledSafetyPolicies
Optional. Disabled safety policies for computer use. -
enablePromptInjectionDetection
Whether enable the prompt injection detection check on computer-use request. -
environment
The environment being operated. -
excludedPredefinedFunctions
The list of predefined functions that are excluded from the model call. -
type
-
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
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
-
hashCode
public int hashCode() -
toString
-