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.
15838 15839 15840 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 15838 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
15821 15822 15823 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 15821 def content @content end |
#grounding_metadata ⇒ Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGenerateGroundedContentResponseCandidateGroundingMetadata
Citation for the generated content.
Corresponds to the JSON property groundingMetadata
15826 15827 15828 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 15826 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
15831 15832 15833 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 15831 def grounding_score @grounding_score end |
#index ⇒ Fixnum
Index of the candidate.
Corresponds to the JSON property index
15836 15837 15838 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 15836 def index @index end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
15843 15844 15845 15846 15847 15848 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 15843 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 |