AI Dev Kit
Search Results for

    Show / Hide Table of Contents

    Class Candidate

    A response candidate generated from the model.

    Inheritance
    object
    Candidate
    Namespace: Glitch9.AIDevKit.Google
    Assembly: .dll
    Syntax
    public class Candidate

    Properties

    CitationMetadata

    Output only. Citation information for model-generated candidate.

    This field may be populated with recitation information for any text included in the content. These are passages that are "recited" from copyrighted material in the foundational LLM's training data.

    Declaration
    public CitationMetadata CitationMetadata { get; set; }
    Property Value
    Type Description
    CitationMetadata

    Content

    Output only. Generated content returned from the model.

    Declaration
    public Content Content { get; set; }
    Property Value
    Type Description
    Content

    FinishReason

    Optional. Output only. The reason why the model stopped generating tokens. If empty, the model has not stopped generating the tokens.

    Declaration
    public StopReason? FinishReason { get; set; }
    Property Value
    Type Description
    StopReason?

    GroundingAttributions

    Output only. Token count for this candidate. This field is populated for GenerateAnswer calls.

    Declaration
    public GroundingAttribution[] GroundingAttributions { get; set; }
    Property Value
    Type Description
    GroundingAttribution[]

    Index

    Output only. Index of the candidate in the list of candidates.

    Declaration
    public int? Index { get; set; }
    Property Value
    Type Description
    int?

    SafetyRatings

    List of ratings for the safety of a response candidate. There is at most one rating per category.

    Declaration
    public SafetyRating[] SafetyRatings { get; set; }
    Property Value
    Type Description
    SafetyRating[]

    TokenCount

    Output only. Token count for this candidate.

    Declaration
    public int TokenCount { get; set; }
    Property Value
    Type Description
    int
    In this article
    Back to top Generated by DocFX