Class: Google::Apis::FirebasemlV2beta::Content
- Inherits:
-
Object
- Object
- Google::Apis::FirebasemlV2beta::Content
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/firebaseml_v2beta/classes.rb,
lib/google/apis/firebaseml_v2beta/representations.rb,
lib/google/apis/firebaseml_v2beta/representations.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
-
#parts ⇒ Array<Google::Apis::FirebasemlV2beta::Part>
Required.
-
#role ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Content
constructor
A new instance of Content.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Content
Returns a new instance of Content.
207 208 209 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 207 def initialize(**args) update!(**args) end |
Instance Attribute Details
#parts ⇒ Array<Google::Apis::FirebasemlV2beta::Part>
Required. Ordered Parts that constitute a single message. Parts may have
different IANA MIME types.
Corresponds to the JSON property parts
198 199 200 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 198 def parts @parts end |
#role ⇒ 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.
Corresponds to the JSON property role
205 206 207 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 205 def role @role end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
212 213 214 215 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 212 def update!(**args) @parts = args[:parts] if args.key?(:parts) @role = args[:role] if args.key?(:role) end |