Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidate

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#contentGoogle::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_metadataGoogle::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_scoreFloat

The overall grounding score for the candidate, in the range of [0, 1]. Corresponds to the JSON property groundingScore

Returns:

  • (Float)


5585
5586
5587
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5585

def grounding_score
  @grounding_score
end

#indexFixnum

Index of the candidate. Corresponds to the JSON property index

Returns:

  • (Fixnum)


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