Discovery Engine V1BETA API - Class Google::Cloud::DiscoveryEngine::V1beta::GroundedGenerationContent (v0.16.0)

Reference documentation and code samples for the Discovery Engine V1BETA API class Google::Cloud::DiscoveryEngine::V1beta::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::V1beta::GroundedGenerationContent::Part>
Returns

#parts=

def parts=(value) -> ::Array<::Google::Cloud::DiscoveryEngine::V1beta::GroundedGenerationContent::Part>
Parameter
Returns

#role

def role() -> ::String
Returns
  • (::String) — Producer of the content. Must be either user or model.

    Intended to be used for multi-turn conversations. Otherwise, it can be left unset.

#role=

def role=(value) -> ::String
Parameter
  • value (::String) — Producer of the content. Must be either user or model.

    Intended to be used for multi-turn conversations. Otherwise, it can be left unset.

Returns
  • (::String) — Producer of the content. Must be either user or model.

    Intended to be used for multi-turn conversations. Otherwise, it can be left unset.