Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGenerateGroundedContentResponseCandidate
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGenerateGroundedContentResponseCandidate
- 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
A response candidate generated from the model.
Instance Attribute Summary collapse
-
#content ⇒ Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGroundedGenerationContent
Base structured datatype containing multi-part content of a message.
-
#grounding_metadata ⇒ Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGenerateGroundedContentResponseCandidateGroundingMetadata
Citation for the generated content.
-
#grounding_score ⇒ Float
The overall grounding score for the candidate, in the range of [0, 1].
-
#index ⇒ Fixnum
Index of the candidate.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaGenerateGroundedContentResponseCandidate
constructor
A new instance of GoogleCloudDiscoveryengineV1betaGenerateGroundedContentResponseCandidate.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaGenerateGroundedContentResponseCandidate
Returns a new instance of GoogleCloudDiscoveryengineV1betaGenerateGroundedContentResponseCandidate.
16207 16208 16209 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 16207 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content ⇒ Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGroundedGenerationContent
Base structured datatype containing multi-part content of a message.
Corresponds to the JSON property content
16190 16191 16192 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 16190 def content @content end |
#grounding_metadata ⇒ Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGenerateGroundedContentResponseCandidateGroundingMetadata
Citation for the generated content.
Corresponds to the JSON property groundingMetadata
16195 16196 16197 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 16195 def @grounding_metadata end |
#grounding_score ⇒ Float
The overall grounding score for the candidate, in the range of [0, 1].
Corresponds to the JSON property groundingScore
16200 16201 16202 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 16200 def grounding_score @grounding_score end |
#index ⇒ Fixnum
Index of the candidate.
Corresponds to the JSON property index
16205 16206 16207 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 16205 def index @index end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
16212 16213 16214 16215 16216 16217 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 16212 def update!(**args) @content = args[:content] if args.key?(:content) @grounding_metadata = args[:grounding_metadata] if args.key?(:grounding_metadata) @grounding_score = args[:grounding_score] if args.key?(:grounding_score) @index = args[:index] if args.key?(:index) end |