Skip to content

Latest commit

 

History

History
65 lines (40 loc) · 1.3 KB

File metadata and controls

65 lines (40 loc) · 1.3 KB

google.generativeai.protos.SafetyFeedback

View source on GitHub

Safety feedback for an entire request.

This field is populated if content in the input and/or response is blocked due to safety settings. SafetyFeedback may not exist for every HarmCategory. Each SafetyFeedback will return the safety settings used by the request as well as the lowest HarmProbability that should be allowed in order to return a result.

Attributes

rating

google.ai.generativelanguage.SafetyRating

Safety rating evaluated from content.

setting

google.ai.generativelanguage.SafetySetting

Safety settings applied to the request.