ComputerUse

@Serializable
data class ComputerUse(val environment: Environment? = null, val excludedPredefinedFunctions: List<String>? = null, val enablePromptInjectionDetection: Boolean? = null, val disabledSafetyPolicies: List<SafetyPolicy>? = null)

A tool that enables the model to interact directly with a computer environment.

Constructors

Link copied to clipboard
constructor(environment: Environment? = null, excludedPredefinedFunctions: List<String>? = null, enablePromptInjectionDetection: Boolean? = null, disabledSafetyPolicies: List<SafetyPolicy>? = null)

Properties

Link copied to clipboard

Optional. A list of safety policies to disable for the computer use tool.

Link copied to clipboard

Optional. Whether to enable the prompt injection detection check on the computer use request.

Link copied to clipboard

Required. The target environment where the computer use tool operates.

Link copied to clipboard

Optional. A list of predefined functions to explicitly exclude from the model call. By default, predefined functions are included. Excluding functions allows for a more restricted action space or custom definitions for predefined functions.