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

Classes

class  GeminiCandidate
 A response candidate generated from the model. More...
 
class  GeminiPromptFeedback
 A set of the feedback metadata for the prompt specified in a generation request. More...
 
class  GeminiUsageMetadata
 Metadata on the generation request's token usage. More...
 

Enumerations

enum  GeminiFinishReason {
  Unspecified , Stop , MaxTokens , Safety ,
  Recitation , Other , BlockList , ProhibitedContent ,
  SPII , MalformedFunctionCall
}
 Defines the reason why the model stopped generating tokens. More...
 

Enumeration Type Documentation

◆ GeminiFinishReason

Defines the reason why the model stopped generating tokens.

Enumerator
Unspecified 

Default value. This value is unused.

Stop 

Natural stop point of the model or provided stop sequence.

MaxTokens 

The maximum number of tokens as specified in the request was reached.

Safety 

The candidate content was flagged for safety reasons.

Recitation 

The candidate content was flagged for recitation reasons.

Other 

Unknown reason.

BlockList 

Token generation stopped because the content contains forbidden terms.

ProhibitedContent 

Token generation stopped for potentially containing prohibited content.

SPII 

Token generation stopped because the content potentially contains Sensitive Personally Identifiable Information (SPII).

MalformedFunctionCall 

The function call generated by the model is invalid.