Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::Content.
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.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#parts
def parts() -> ::Array<::Google::Cloud::AIPlatform::V1::Part>
-
(::Array<::Google::Cloud::AIPlatform::V1::Part>) — Required. Ordered
Parts
that constitute a single message. Parts may have different IANA MIME types.
#parts=
def parts=(value) -> ::Array<::Google::Cloud::AIPlatform::V1::Part>
-
value (::Array<::Google::Cloud::AIPlatform::V1::Part>) — Required. Ordered
Parts
that constitute a single message. Parts may have different IANA MIME types.
-
(::Array<::Google::Cloud::AIPlatform::V1::Part>) — Required. Ordered
Parts
that constitute a single message. Parts may have different IANA MIME types.
#role
def role() -> ::String
-
(::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.
#role=
def role=(value) -> ::String
-
value (::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.
-
(::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.