Stay organized with collections
Save and categorize content based on your preferences.
Firebase.AI.PromptFeedback
A metadata struct containing any feedback the model had on the prompt it was provided.
Summary
Properties
BlockReason
BlockReason Firebase::AI::PromptFeedback::BlockReason
The reason a prompt was blocked, if it was blocked.
BlockReasonMessage
string Firebase::AI::PromptFeedback::BlockReasonMessage
A human-readable description of the BlockReason
.
SafetyRatings
IReadOnlyList< SafetyRating > Firebase::AI::PromptFeedback::SafetyRatings
The safety ratings of the prompt.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-24 UTC.
[null,null,["Last updated 2025-07-24 UTC."],[],[],null,["# Firebase.AI.PromptFeedback Struct Reference\n\nFirebase.AI.PromptFeedback\n==========================\n\nA metadata struct containing any feedback the model had on the prompt it was provided.\n\nSummary\n-------\n\n| ### Properties ||\n|-------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [BlockReason](#struct_firebase_1_1_a_i_1_1_prompt_feedback_1ac93dd6bac5e884307ba658e871c878fd) | [BlockReason](/docs/reference/unity/namespace/firebase/a-i#namespace_firebase_1_1_a_i_1a9aa40ab7c18d8663cba0699bb4f67d8a) The reason a prompt was blocked, if it was blocked. |\n| [BlockReasonMessage](#struct_firebase_1_1_a_i_1_1_prompt_feedback_1a81b13d80669f30403f01c80321314a35) | `string` A human-readable description of the `BlockReason`. |\n| [SafetyRatings](#struct_firebase_1_1_a_i_1_1_prompt_feedback_1a2f0b5f4e90d8280220da0bce3bd30f40) | `IReadOnlyList\u003c `[SafetyRating](/docs/reference/unity/struct/firebase/a-i/safety-rating#struct_firebase_1_1_a_i_1_1_safety_rating)` \u003e` The safety ratings of the prompt. |\n\nProperties\n----------\n\n### BlockReason\n\n```c#\nBlockReason Firebase::AI::PromptFeedback::BlockReason\n``` \nThe reason a prompt was blocked, if it was blocked. \n\n### BlockReasonMessage\n\n```c#\nstring Firebase::AI::PromptFeedback::BlockReasonMessage\n``` \nA human-readable description of the `BlockReason`. \n\n### SafetyRatings\n\n```c#\nIReadOnlyList\u003c SafetyRating \u003e Firebase::AI::PromptFeedback::SafetyRatings\n``` \nThe safety ratings of the prompt."]]