Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ToolComputerUse
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ToolComputerUse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/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) ⇒ GoogleCloudAiplatformV1ToolComputerUse
constructor
A new instance of GoogleCloudAiplatformV1ToolComputerUse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1ToolComputerUse
Returns a new instance of GoogleCloudAiplatformV1ToolComputerUse.
47765 47766 47767 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 47765 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
47747 47748 47749 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 47747 def enable_prompt_injection_detection @enable_prompt_injection_detection end |
#environment ⇒ String
Required. The environment being operated.
Corresponds to the JSON property environment
47753 47754 47755 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 47753 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
47763 47764 47765 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 47763 def excluded_predefined_functions @excluded_predefined_functions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
47770 47771 47772 47773 47774 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 47770 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 |