Class: Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceContent

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudAiNlLlmProtoServiceContent

Returns a new instance of CloudAiNlLlmProtoServiceContent.



587
588
589
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 587

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

Instance Attribute Details

#partsArray<Google::Apis::AiplatformV1::CloudAiNlLlmProtoServicePart>

The parts of the message. Corresponds to the JSON property parts



580
581
582
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 580

def parts
  @parts
end

#roleString

The role of the current conversation participant. Corresponds to the JSON property role

Returns:

  • (String)


585
586
587
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 585

def role
  @role
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



592
593
594
595
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 592

def update!(**args)
  @parts = args[:parts] if args.key?(:parts)
  @role = args[:role] if args.key?(:role)
end