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.



4932
4933
4934
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4932

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

Instance Attribute Details

#content_listGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1ContentList

A list of Content. Corresponds to the JSON property contentList



4920
4921
4922
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4920

def content_list
  @content_list
end

#content_stringString

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

Returns:

  • (String)


4925
4926
4927
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4925

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)


4930
4931
4932
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4930

def role
  @role
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4937
4938
4939
4940
4941
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4937

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