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.



4699
4700
4701
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4699

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



4697
4698
4699
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4697

def allowed_tools
  @allowed_tools
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4704
4705
4706
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4704

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