Class: Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceContent
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceContent
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/representations.rb
Overview
The content of a single message from a participant.
Instance Attribute Summary collapse
-
#parts ⇒ Array<Google::Apis::AiplatformV1::CloudAiNlLlmProtoServicePart>
The parts of the message.
-
#role ⇒ String
The role of the current conversation participant.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloudAiNlLlmProtoServiceContent
constructor
A new instance of CloudAiNlLlmProtoServiceContent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CloudAiNlLlmProtoServiceContent
Returns a new instance of CloudAiNlLlmProtoServiceContent.
580 581 582 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 580 def initialize(**args) update!(**args) end |
Instance Attribute Details
#parts ⇒ Array<Google::Apis::AiplatformV1::CloudAiNlLlmProtoServicePart>
The parts of the message.
Corresponds to the JSON property parts
573 574 575 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 573 def parts @parts end |
#role ⇒ String
The role of the current conversation participant.
Corresponds to the JSON property role
578 579 580 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 578 def role @role end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
585 586 587 588 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 585 def update!(**args) @parts = args[:parts] if args.key?(:parts) @role = args[:role] if args.key?(:role) end |