Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content
- 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
Overview
The base structured datatype containing multi-part content of a message. A
Content
includes a role
field designating the producer of the Content
and
a parts
field containing multi-part data that contains the content of the
message turn.
Instance Attribute Summary collapse
-
#parts ⇒ Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Part>
Required.
-
#role ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1Content
constructor
A new instance of GoogleCloudAiplatformV1beta1Content.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1Content
Returns a new instance of GoogleCloudAiplatformV1beta1Content.
3326 3327 3328 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3326 def initialize(**args) update!(**args) end |
Instance Attribute Details
#parts ⇒ Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Part>
Required. Ordered Parts
that constitute a single message. Parts may have
different IANA MIME types.
Corresponds to the JSON property parts
3317 3318 3319 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3317 def parts @parts end |
#role ⇒ String
Optional. The producer of the content. Must be either 'user' or 'model'.
Useful to set for multi-turn conversations, otherwise can be left blank or
unset.
Corresponds to the JSON property role
3324 3325 3326 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3324 def role @role end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3331 3332 3333 3334 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3331 def update!(**args) @parts = args[:parts] if args.key?(:parts) @role = args[:role] if args.key?(:role) end |