GenerateContentResponsePromptFeedback

@Serializable
data class GenerateContentResponsePromptFeedback(val blockReason: BlockedReason? = null, val blockReasonMessage: String? = null, val safetyRatings: List<SafetyRating>? = null)

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

Link copied to clipboard
constructor(blockReason: BlockedReason? = null, blockReasonMessage: String? = null, safetyRatings: List<SafetyRating>? = null)

Properties

Link copied to clipboard

Output only. The reason why the prompt was blocked.

Link copied to clipboard

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

Link copied to clipboard

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