Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1Turn
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1Turn
- 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
-
#content_list ⇒ Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1ContentList
A list of Content.
-
#content_string ⇒ String
The content of the turn.
-
#role ⇒ String
The originator of this turn.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GenaiVertexV1beta1Turn
constructor
A new instance of GenaiVertexV1beta1Turn.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_list ⇒ Google::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_string ⇒ String
The content of the turn. A single string.
Corresponds to the JSON property contentString
4925 4926 4927 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4925 def content_string @content_string end |
#role ⇒ String
The originator of this turn. Must be user for input or model for model output.
Corresponds to the JSON property role
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 |