Interface SafetyRating (1.10.0)
Stay organized with collections
Save and categorize content based on your preferences.
Safety rating corresponding to the generated content.
Package
@google-cloud/vertexai
Properties
category
category
?:
HarmCategory
;
probability
probability
?:
HarmProbability
;
probabilityScore
probabilityScore
?:
number
;
The harm probability score.
severity
severity
?:
HarmSeverity
;
severityScore
severityScore
?:
number
;
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-09-04 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Interface SafetyRating (1.10.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.10.0 (latest)](/nodejs/docs/reference/vertexai/latest/vertexai/safetyrating)\n- [1.9.0](/nodejs/docs/reference/vertexai/1.9.0/vertexai/safetyrating)\n- [1.8.1](/nodejs/docs/reference/vertexai/1.8.1/vertexai/safetyrating)\n- [1.7.0](/nodejs/docs/reference/vertexai/1.7.0/vertexai/safetyrating)\n- [1.6.0](/nodejs/docs/reference/vertexai/1.6.0/vertexai/safetyrating)\n- [1.5.0](/nodejs/docs/reference/vertexai/1.5.0/vertexai/safetyrating)\n- [1.4.1](/nodejs/docs/reference/vertexai/1.4.1/vertexai/safetyrating)\n- [1.3.1](/nodejs/docs/reference/vertexai/1.3.1/vertexai/safetyrating)\n- [1.2.0](/nodejs/docs/reference/vertexai/1.2.0/vertexai/safetyrating)\n- [1.1.0](/nodejs/docs/reference/vertexai/1.1.0/vertexai/safetyrating)\n- [1.0.0](/nodejs/docs/reference/vertexai/1.0.0/vertexai/safetyrating)\n- [0.5.0](/nodejs/docs/reference/vertexai/0.5.0/vertexai/safetyrating)\n- [0.4.0](/nodejs/docs/reference/vertexai/0.4.0/vertexai/safetyrating)\n- [0.3.1](/nodejs/docs/reference/vertexai/0.3.1/vertexai/safetyrating)\n- [0.2.1](/nodejs/docs/reference/vertexai/0.2.1/vertexai/safetyrating) \nSafety rating corresponding to the generated content.\n\nPackage\n-------\n\n[@google-cloud/vertexai](../overview.html)\n\nProperties\n----------\n\n### category\n\n category?: HarmCategory;\n\nThe harm category. [HarmCategory](/nodejs/docs/reference/vertexai/latest/vertexai/harmcategory)\n\n### probability\n\n probability?: HarmProbability;\n\nThe harm probability. [HarmProbability](/nodejs/docs/reference/vertexai/latest/vertexai/harmprobability)\n\n### probabilityScore\n\n probabilityScore?: number;\n\nThe harm probability score.\n\n### severity\n\n severity?: HarmSeverity;\n\nThe harm severity.level [HarmSeverity](/nodejs/docs/reference/vertexai/latest/vertexai/harmseverity)\n\n### severityScore\n\n severityScore?: number;\n\nThe harm severity score."]]