Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content
- 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
A single turn in a conversation with the model.
Instance Attribute Summary collapse
-
#parts ⇒ Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Part>
Required.
-
#role ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1Content
constructor
A new instance of GoogleCloudAiplatformV1Content.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1Content
Returns a new instance of GoogleCloudAiplatformV1Content.
2101 2102 2103 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 2101 def initialize(**args) update!(**args) end |
Instance Attribute Details
#parts ⇒ Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Part>
Required. Ordered parts that make up a message. Parts may have different MIME
types.
Corresponds to the JSON property parts
2092 2093 2094 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 2092 def parts @parts end |
#role ⇒ String
Optional. The role in a conversation associated with this content. Set it only
if a content represents a turn in a conversations, otherwise no need to set
role. Possible values: user, model.
Corresponds to the JSON property role
2099 2100 2101 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 2099 def role @role end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2106 2107 2108 2109 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 2106 def update!(**args) @parts = args[:parts] if args.key?(:parts) @role = args[:role] if args.key?(:role) end |