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.



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

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



573
574
575
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 573

def parts
  @parts
end

#roleString

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

Returns:

  • (String)


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