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.



5902
5903
5904
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5902

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

Instance Attribute Details

#content_listGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1ContentList

A list of Content. Corresponds to the JSON property contentList



5890
5891
5892
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5890

def content_list
  @content_list
end

#content_stringString

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

Returns:

  • (String)


5895
5896
5897
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5895

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)


5900
5901
5902
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5900

def role
  @role
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5907
5908
5909
5910
5911
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5907

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