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.
914 915 916 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 914 def initialize(**args) update!(**args) end |
Instance Attribute Details
#mode ⇒ String
The mode of the tool choice.
Corresponds to the JSON property mode
907 908 909 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 907 def mode @mode end |
#tools ⇒ Array<String>
The names of the allowed tools.
Corresponds to the JSON property tools
912 913 914 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 912 def tools @tools end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
919 920 921 922 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 919 def update!(**args) @mode = args[:mode] if args.key?(:mode) @tools = args[:tools] if args.key?(:tools) end |