Class: Google::Cloud::AIPlatform::V1::Content

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

Overview

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.

Instance Attribute Summary collapse

Instance Attribute Details

#parts::Array<::Google::Cloud::AIPlatform::V1::Part>

Returns Required. Ordered Parts that constitute a single message. Parts may have different IANA MIME types.

Returns:



39
40
41
42
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 39

class Content
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#role::String

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

Returns:

  • (::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.



39
40
41
42
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 39

class Content
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end