Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidate
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidate
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1/classes.rb,
lib/google/apis/discoveryengine_v1/representations.rb,
lib/google/apis/discoveryengine_v1/representations.rb
Overview
A response candidate generated from the model.
Instance Attribute Summary collapse
-
#content ⇒ Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GroundedGenerationContent
Base structured datatype containing multi-part content of a message.
-
#grounding_metadata ⇒ Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidateGroundingMetadata
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) ⇒ GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidate
constructor
A new instance of GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidate.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidate
Returns a new instance of GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidate.
5592 5593 5594 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5592 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content ⇒ Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GroundedGenerationContent
Base structured datatype containing multi-part content of a message.
Corresponds to the JSON property content
5575 5576 5577 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5575 def content @content end |
#grounding_metadata ⇒ Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidateGroundingMetadata
Citation for the generated content.
Corresponds to the JSON property groundingMetadata
5580 5581 5582 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5580 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
5585 5586 5587 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5585 def grounding_score @grounding_score end |
#index ⇒ Fixnum
Index of the candidate.
Corresponds to the JSON property index
5590 5591 5592 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5590 def index @index end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5597 5598 5599 5600 5601 5602 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5597 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 |