Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1AllowedTools
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1AllowedTools
- 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
The configuration for allowed tools.
Instance Attribute Summary collapse
-
#mode ⇒ String
The mode of the tool choice.
-
#tools ⇒ Array<String>
The names of the allowed tools.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GenaiVertexV1beta1AllowedTools
constructor
A new instance of GenaiVertexV1beta1AllowedTools.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GenaiVertexV1beta1AllowedTools
Returns a new instance of GenaiVertexV1beta1AllowedTools.
938 939 940 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 938 def initialize(**args) update!(**args) end |
Instance Attribute Details
#mode ⇒ String
The mode of the tool choice.
Corresponds to the JSON property mode
931 932 933 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 931 def mode @mode end |
#tools ⇒ Array<String>
The names of the allowed tools.
Corresponds to the JSON property tools
936 937 938 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 936 def tools @tools end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
943 944 945 946 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 943 def update!(**args) @mode = args[:mode] if args.key?(:mode) @tools = args[:tools] if args.key?(:tools) end |