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.



914
915
916
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 914

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

Instance Attribute Details

#modeString

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

Returns:

  • (String)


907
908
909
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 907

def mode
  @mode
end

#toolsArray<String>

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

Returns:

  • (Array<String>)


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