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.



6160
6161
6162
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 6160

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

Instance Attribute Details

#content_listGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1ContentList

A list of Content. Corresponds to the JSON property contentList



6148
6149
6150
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 6148

def content_list
  @content_list
end

#content_stringString

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

Returns:

  • (String)


6153
6154
6155
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 6153

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)


6158
6159
6160
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 6158

def role
  @role
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6165
6166
6167
6168
6169
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 6165

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