Discovery Engine V1 API - Class Google::Cloud::DiscoveryEngine::V1::GroundedGenerationContent (v1.2.0)

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>
Returns

#parts=

def parts=(value) -> ::Array<::Google::Cloud::DiscoveryEngine::V1::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.