Google Gemini · Schema

PromptFeedback

A set of the feedback metadata for the prompt specified in GenerateContentRequest.content.

Agentic AIArtificial IntelligenceCode GenerationEmbeddingsGenerative AIImage GenerationLLMMachine LearningMultimodal

Properties

Name Type Description
blockReason string If set, the prompt was blocked and no candidates are returned.
safetyRatings array Ratings for safety of the prompt.
View JSON Schema on GitHub

JSON Schema

google-gemini-promptfeedback-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/PromptFeedback",
  "title": "PromptFeedback",
  "type": "object",
  "description": "A set of the feedback metadata for the prompt specified in GenerateContentRequest.content.",
  "properties": {
    "blockReason": {
      "type": "string",
      "description": "If set, the prompt was blocked and no candidates are returned.",
      "enum": [
        "BLOCK_REASON_UNSPECIFIED",
        "SAFETY",
        "OTHER",
        "BLOCKLIST",
        "PROHIBITED_CONTENT"
      ]
    },
    "safetyRatings": {
      "type": "array",
      "description": "Ratings for safety of the prompt.",
      "items": {
        "$ref": "#/components/schemas/SafetyRating"
      }
    }
  }
}