Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGroundedGenerationContent
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGroundedGenerationContent
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1beta/classes.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb
Overview
Base structured datatype containing multi-part content of a message.
Instance Attribute Summary collapse
-
#parts ⇒ Array<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGroundedGenerationContentPart>
Ordered
Partsthat constitute a single message. -
#role ⇒ String
Producer of the content.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaGroundedGenerationContent
constructor
A new instance of GoogleCloudDiscoveryengineV1betaGroundedGenerationContent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaGroundedGenerationContent
Returns a new instance of GoogleCloudDiscoveryengineV1betaGroundedGenerationContent.
16416 16417 16418 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 16416 def initialize(**args) update!(**args) end |
Instance Attribute Details
#parts ⇒ Array<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGroundedGenerationContentPart>
Ordered Parts that constitute a single message.
Corresponds to the JSON property parts
16408 16409 16410 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 16408 def parts @parts end |
#role ⇒ 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.
Corresponds to the JSON property role
16414 16415 16416 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 16414 def role @role end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
16421 16422 16423 16424 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 16421 def update!(**args) @parts = args[:parts] if args.key?(:parts) @role = args[:role] if args.key?(:role) end |