Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1ToolChoiceConfig

Inherits:
Object
  • Object
show all
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 tool choice configuration containing allowed tools.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenaiVertexV1beta1ToolChoiceConfig

Returns a new instance of GenaiVertexV1beta1ToolChoiceConfig.



5104
5105
5106
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5104

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#allowed_toolsGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1AllowedTools

The configuration for allowed tools. Corresponds to the JSON property allowed_tools



5102
5103
5104
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5102

def allowed_tools
  @allowed_tools
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5109
5110
5111
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5109

def update!(**args)
  @allowed_tools = args[:allowed_tools] if args.key?(:allowed_tools)
end