Discovery Engine v1 API - Class GenerateGroundedContentResponse.Types.Candidate (1.5.0)

public sealed class GenerateGroundedContentResponse.Types.Candidate : IMessage<GenerateGroundedContentResponse.Types.Candidate>, IEquatable<GenerateGroundedContentResponse.Types.Candidate>, IDeepCloneable<GenerateGroundedContentResponse.Types.Candidate>, IBufferMessage, IMessage

Reference documentation and code samples for the Discovery Engine v1 API class GenerateGroundedContentResponse.Types.Candidate.

A response candidate generated from the model.

Inheritance

object > GenerateGroundedContentResponse.Types.Candidate

Namespace

Google.Cloud.DiscoveryEngine.V1

Assembly

Google.Cloud.DiscoveryEngine.V1.dll

Constructors

Candidate()

public Candidate()

Candidate(Candidate)

public Candidate(GenerateGroundedContentResponse.Types.Candidate other)
Parameter
Name Description
other GenerateGroundedContentResponseTypesCandidate

Properties

Content

public GroundedGenerationContent Content { get; set; }

Content of the candidate.

Property Value
Type Description
GroundedGenerationContent

GroundingMetadata

public GenerateGroundedContentResponse.Types.Candidate.Types.GroundingMetadata GroundingMetadata { get; set; }

Grounding metadata for the generated content.

Property Value
Type Description
GenerateGroundedContentResponseTypesCandidateTypesGroundingMetadata

GroundingScore

public float GroundingScore { get; set; }

The overall grounding score for the candidate, in the range of [0, 1].

Property Value
Type Description
float

HasGroundingScore

public bool HasGroundingScore { get; }

Gets whether the "grounding_score" field is set

Property Value
Type Description
bool

Index

public int Index { get; set; }

Index of the candidate.

Property Value
Type Description
int