Class PromptFeedback
- Namespace
- GenerativeAI.Types
- Assembly
- GenerativeAI.dll
A set of the feedback metadata the prompt specified in Contents.
public class PromptFeedback
- Inheritance
-
PromptFeedback
- Inherited Members
- Extension Methods
Properties
BlockReason
Optional. If set, the prompt was blocked and no candidates are returned. Rephrase the prompt.
[JsonPropertyName("blockReason")]
public BlockReason? BlockReason { get; set; }
Property Value
BlockReasonMessage
Optional. A readable block reason message.
[JsonPropertyName("blockReasonMessage")]
public string? BlockReasonMessage { get; set; }
Property Value
SafetyRatings
Ratings for safety of the prompt. There is at most one rating per category.
[JsonPropertyName("safetyRatings")]
public List<SafetyRating>? SafetyRatings { get; set; }