UGemini 2.0.1
A C# wrapper for the Google Gemini API.
Loading...
Searching...
No Matches
Uralstech.UGemini.Models.Generation.Candidate.GeminiCandidate Class Reference

A response candidate generated from the model. More...

Inheritance diagram for Uralstech.UGemini.Models.Generation.Candidate.GeminiCandidate:
Uralstech.UGemini.IAppendableData< GeminiCandidate >

Public Member Functions

void Append (GeminiCandidate data)
 
- Public Member Functions inherited from Uralstech.UGemini.IAppendableData< GeminiCandidate >
void Append (T data)
 Appends the data to the current IAppendableData<T>.
 

Public Attributes

GeminiContent Content
 Generated content returned from the model.
 
GeminiFinishReason FinishReason
 The reason why the model stopped generating tokens.
 
GeminiSafetyRating[] SafetyRatings
 List of ratings for the safety of a response candidate There is at most one rating per category.
 
GeminiCitationMetadata CitationMetadata
 Citation information for model-generated candidate.
 
int TokenCount
 Token count for this candidate.
 
GeminiGroundingAttribution[] GroundingAttributions
 Attribution information for sources that contributed to a grounded answer.
 
int Index
 Index of the candidate in the list of candidates.
 

Detailed Description

A response candidate generated from the model.

Member Data Documentation

◆ CitationMetadata

GeminiCitationMetadata Uralstech.UGemini.Models.Generation.Candidate.GeminiCandidate.CitationMetadata

Citation information for model-generated candidate.

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

◆ GroundingAttributions

GeminiGroundingAttribution [] Uralstech.UGemini.Models.Generation.Candidate.GeminiCandidate.GroundingAttributions

Attribution information for sources that contributed to a grounded answer.

This field is populated for GenerateAnswer calls.

Only available in the beta API.


The documentation for this class was generated from the following file: