Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1Turn

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenaiVertexV1beta1Turn

Returns a new instance of GenaiVertexV1beta1Turn.



5575
5576
5577
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5575

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

Instance Attribute Details

#content_listGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1ContentList

A list of Content. Corresponds to the JSON property contentList



5563
5564
5565
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5563

def content_list
  @content_list
end

#content_stringString

The content of the turn. A single string. Corresponds to the JSON property contentString

Returns:

  • (String)


5568
5569
5570
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5568

def content_string
  @content_string
end

#roleString

The originator of this turn. Must be user for input or model for model output. Corresponds to the JSON property role

Returns:

  • (String)


5573
5574
5575
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5573

def role
  @role
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5580
5581
5582
5583
5584
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5580

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