Reference documentation and code samples for the Discovery Engine V1 API class Google::Cloud::DiscoveryEngine::V1::GroundedGenerationContent.
Base structured datatype containing multi-part content of a message.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#parts
def parts() -> ::Array<::Google::Cloud::DiscoveryEngine::V1::GroundedGenerationContent::Part>
-
(::Array<::Google::Cloud::DiscoveryEngine::V1::GroundedGenerationContent::Part>) — Ordered
Parts
that constitute a single message.
#parts=
def parts=(value) -> ::Array<::Google::Cloud::DiscoveryEngine::V1::GroundedGenerationContent::Part>
-
value (::Array<::Google::Cloud::DiscoveryEngine::V1::GroundedGenerationContent::Part>) — Ordered
Parts
that constitute a single message.
-
(::Array<::Google::Cloud::DiscoveryEngine::V1::GroundedGenerationContent::Part>) — Ordered
Parts
that constitute a single message.
#role
def role() -> ::String
-
(::String) — Producer of the content. Must be either
user
ormodel
.Intended to be used for multi-turn conversations. Otherwise, it can be left unset.
#role=
def role=(value) -> ::String
-
value (::String) — Producer of the content. Must be either
user
ormodel
.Intended to be used for multi-turn conversations. Otherwise, it can be left unset.
-
(::String) — Producer of the content. Must be either
user
ormodel
.Intended to be used for multi-turn conversations. Otherwise, it can be left unset.