Discovery Engine V1BETA API - Class Google::Cloud::DiscoveryEngine::V1beta::GenerateGroundedContentResponse::Candidate (v0.16.0)

Reference documentation and code samples for the Discovery Engine V1BETA API class Google::Cloud::DiscoveryEngine::V1beta::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::V1beta::GroundedGenerationContent

#content=

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

#grounding_metadata

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

#grounding_metadata=

def grounding_metadata=(value) -> ::Google::Cloud::DiscoveryEngine::V1beta::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.