Class: Google::Cloud::AIPlatform::V1::Content
- Inherits:
-
Object
- Object
- Google::Cloud::AIPlatform::V1::Content
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/aiplatform/v1/content.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::Cloud::AIPlatform::V1::Part>
Required.
-
#role ⇒ ::String
Optional.
Instance Attribute Details
#parts ⇒ ::Array<::Google::Cloud::AIPlatform::V1::Part>
Returns Required. Ordered Parts
that constitute a single message. Parts may have
different IANA MIME types.
39 40 41 42 |
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 39 class Content include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#role ⇒ ::String
Returns 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.
39 40 41 42 |
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 39 class Content include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |