Home > @google/generative-ai > PromptFeedback
If the prompt was blocked, this will be populated with blockReason
and the relevant safetyRatings
.
Signature:
export interface PromptFeedback
Property | Modifiers | Type | Description |
---|---|---|---|
blockReason | BlockReason | ||
blockReasonMessage? | string | (Optional) | |
safetyRatings | SafetyRating[] |