Class: Google::Cloud::DiscoveryEngine::V1::GroundedGenerationContent

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/discoveryengine/v1/grounded_generation_service.rb

Overview

Base structured datatype containing multi-part content of a message.

Defined Under Namespace

Classes: Part

Instance Attribute Summary collapse

Instance Attribute Details

#parts::Array<::Google::Cloud::DiscoveryEngine::V1::GroundedGenerationContent::Part>

Returns Ordered Parts that constitute a single message.

Returns:



34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'proto_docs/google/cloud/discoveryengine/v1/grounded_generation_service.rb', line 34

class GroundedGenerationContent
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Single part of content.
  # @!attribute [rw] text
  #   @return [::String]
  #     Inline text.
  class Part
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#role::String

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



34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'proto_docs/google/cloud/discoveryengine/v1/grounded_generation_service.rb', line 34

class GroundedGenerationContent
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Single part of content.
  # @!attribute [rw] text
  #   @return [::String]
  #     Inline text.
  class Part
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end