Class GenerateContentResponsePromptFeedback

Content filter results for a prompt sent in the request. Note: This is sent only in the first stream chunk and only if no candidates were generated due to content violations.

Constructors

Properties

blockReason?: BlockedReason

Output only. The reason why the prompt was blocked.

blockReasonMessage?: string

Output only. A readable message that explains the reason why the prompt was blocked. This field is not supported in Gemini API.

safetyRatings?: SafetyRating[]

Output only. A list of safety ratings for the prompt. There is one rating per category.