Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaGroundedGenerationContent
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaGroundedGenerationContent
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1alpha/classes.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb
Overview
Base structured datatype containing multi-part content of a message.
Instance Attribute Summary collapse
-
#parts ⇒ Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaGroundedGenerationContentPart>
Ordered
Parts
that constitute a single message. -
#role ⇒ String
Producer of the content.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaGroundedGenerationContent
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaGroundedGenerationContent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaGroundedGenerationContent
Returns a new instance of GoogleCloudDiscoveryengineV1alphaGroundedGenerationContent.
10953 10954 10955 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10953 def initialize(**args) update!(**args) end |
Instance Attribute Details
#parts ⇒ Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaGroundedGenerationContentPart>
Ordered Parts
that constitute a single message.
Corresponds to the JSON property parts
10945 10946 10947 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10945 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
10951 10952 10953 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10951 def role @role end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10958 10959 10960 10961 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10958 def update!(**args) @parts = args[:parts] if args.key?(:parts) @role = args[:role] if args.key?(:role) end |