Discovery Engine V1 API - Class Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentResponse::Candidate (v1.3.0)

Reference documentation and code samples for the Discovery Engine V1 API class Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentResponse::Candidate.

A response candidate generated from the model.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#content

def content() -> ::Google::Cloud::DiscoveryEngine::V1::GroundedGenerationContent
Returns

#content=

def content=(value) -> ::Google::Cloud::DiscoveryEngine::V1::GroundedGenerationContent
Parameter
Returns

#grounding_metadata

def grounding_metadata() -> ::Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentResponse::Candidate::GroundingMetadata

#grounding_metadata=

def grounding_metadata=(value) -> ::Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentResponse::Candidate::GroundingMetadata
Parameter

#grounding_score

def grounding_score() -> ::Float
Returns
  • (::Float) — The overall grounding score for the candidate, in the range of [0, 1].

#grounding_score=

def grounding_score=(value) -> ::Float
Parameter
  • value (::Float) — The overall grounding score for the candidate, in the range of [0, 1].
Returns
  • (::Float) — The overall grounding score for the candidate, in the range of [0, 1].

#index

def index() -> ::Integer
Returns
  • (::Integer) — Index of the candidate.

#index=

def index=(value) -> ::Integer
Parameter
  • value (::Integer) — Index of the candidate.
Returns
  • (::Integer) — Index of the candidate.