Firebase. AI. PromptFeedback
A metadata struct containing any feedback the model had on the prompt it was provided.
Summary
Properties | |
|---|---|
BlockReason | The reason a prompt was blocked, if it was blocked. |
BlockReasonMessage | stringA human-readable description of the BlockReason. |
SafetyRatings | IReadOnlyList<SafetyRating >The safety ratings of the prompt. |
Properties
BlockReason
BlockReasonFirebase::AI::PromptFeedback::BlockReason
The reason a prompt was blocked, if it was blocked.
BlockReasonMessage
stringFirebase::AI::PromptFeedback::BlockReasonMessage
A human-readable description of theBlockReason.
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 theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-24 UTC.