Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1AllowedTools

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 configuration for allowed tools.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#modeString

The mode of the tool choice. Corresponds to the JSON property mode

Returns:

  • (String)


931
932
933
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 931

def mode
  @mode
end

#toolsArray<String>

The names of the allowed tools. Corresponds to the JSON property tools

Returns:

  • (Array<String>)


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