Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ToolComputerUse
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ToolComputerUse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb
Overview
Tool to support computer use.
Instance Attribute Summary collapse
-
#enable_prompt_injection_detection ⇒ Boolean
(also: #enable_prompt_injection_detection?)
Optional.
-
#environment ⇒ String
Required.
-
#excluded_predefined_functions ⇒ Array<String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1ToolComputerUse
constructor
A new instance of GoogleCloudAiplatformV1beta1ToolComputerUse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1ToolComputerUse
Returns a new instance of GoogleCloudAiplatformV1beta1ToolComputerUse.
62852 62853 62854 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 62852 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enable_prompt_injection_detection ⇒ Boolean Also known as: enable_prompt_injection_detection?
Optional. Enables the prompt injection detection check on computer-use request.
Corresponds to the JSON property enablePromptInjectionDetection
62834 62835 62836 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 62834 def enable_prompt_injection_detection @enable_prompt_injection_detection end |
#environment ⇒ String
Required. The environment being operated.
Corresponds to the JSON property environment
62840 62841 62842 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 62840 def environment @environment end |
#excluded_predefined_functions ⇒ Array<String>
Optional. 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.
Corresponds to the JSON property excludedPredefinedFunctions
62850 62851 62852 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 62850 def excluded_predefined_functions @excluded_predefined_functions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
62857 62858 62859 62860 62861 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 62857 def update!(**args) @enable_prompt_injection_detection = args[:enable_prompt_injection_detection] if args.key?(:enable_prompt_injection_detection) @environment = args[:environment] if args.key?(:environment) @excluded_predefined_functions = args[:excluded_predefined_functions] if args.key?(:excluded_predefined_functions) end |