UGemini 2.0.1
A C# wrapper for the Google Gemini API.
|
Classes | |
class | GeminiSafetyRating |
Safety rating for a piece of content. More... | |
class | GeminiSafetySettings |
Safety setting, affecting the safety-blocking behavior. More... | |
Enumerations | |
enum | GeminiBlockReason { Unspecified , Safety , Other , BlockList , ProhibitedContent } |
Specifies what was the reason why prompt was blocked. More... | |
enum | GeminiHarmProbability { Unspecified , Negligible , Low , Medium , High } |
The probability that a piece of content is harmful. More... | |
enum | GeminiSafetyHarmBlockThreshold { Unspecified , LowAndAbove , MediumAndAbove , OnlyHigh , None } |
Block at and beyond a specified harm probability. More... | |
enum | GeminiSafetyHarmCategory { Unspecified , Derogatory , Toxicity , Violence , Sexual , Medical , Dangerous , Harassment , HateSpeech , SexuallyExplicit , DangerousContent } |
The category of a rating. More... | |
Specifies what was the reason why prompt was blocked.
Enumerator | |
---|---|
Unspecified | Default value. This value is unused. |
Safety | Prompt was blocked due to safety reasons. You can inspect Candidate.GeminiPromptFeedback.SafetyRatings to understand which safety category blocked it. |
Other | Prompt was blocked due to unknown reasons. |
BlockList | Prompt was blocked due to the terms which are included from the terminology blocklist. |
ProhibitedContent | Prompt was blocked due to prohibited content. |
The probability that a piece of content is harmful.
The classification system gives the probability of the content being unsafe. This does not indicate the severity of harm for a piece of content.
Enumerator | |
---|---|
Unspecified | Probability is unspecified. |
Negligible | Content has a negligible chance of being unsafe. |
Low | Content has a low chance of being unsafe. |
Medium | Content has a medium chance of being unsafe. |
High | Content has a high chance of being unsafe. |
Block at and beyond a specified harm probability.
Enumerator | |
---|---|
Unspecified | Threshold is unspecified. |
LowAndAbove | Content with GeminiHarmProbability.Negligible will be allowed. |
MediumAndAbove | Content with GeminiHarmProbability.Negligible and GeminiHarmProbability.Low will be allowed. |
OnlyHigh | Content with GeminiHarmProbability.Negligible, GeminiHarmProbability.Low, and GeminiHarmProbability.Medium will be allowed. |
None | All content will be allowed. |
The category of a rating.
Enumerator | |
---|---|
Unspecified | Category is unspecified. |
Derogatory | Negative or harmful comments targeting identity and/or protected attribute. |
Toxicity | Content that is rude, disrespectful, or profane. |
Violence | Describes scenarios depicting violence against an individual or group, or general descriptions of gore. |
Sexual | Contains references to sexual acts or other lewd content. |
Medical | Promotes unchecked medical advice. |
Dangerous | Dangerous content that promotes, facilitates, or encourages harmful acts. |
Harassment | Harasment content. |
HateSpeech | Hate speech and content. |
SexuallyExplicit | Sexually explicit content. |
DangerousContent | Dangerous content. |