Starting April 29, 2025, Gemini 1.5 Pro and Gemini 1.5 Flash models are not available in projects that have no prior usage of these models, including new projects. For details, see
Model versions and lifecycle .
Send feedback
Interface SafetyRating (1.7.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
probability
probability ?: HarmProbability ;
probabilityScore
probabilityScore ?: number ;
The harm probability score.
severity
severityScore
Send feedback
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.
Need to tell us more?
[[["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.7.0)\n\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](/vertex-ai/generative-ai/docs/reference/nodejs/1.7.0/vertexai/harmcategory)\n\n### probability\n\n probability?: HarmProbability;\n\nThe harm probability. [HarmProbability](/vertex-ai/generative-ai/docs/reference/nodejs/1.7.0/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](/vertex-ai/generative-ai/docs/reference/nodejs/1.7.0/vertexai/harmseverity)\n\n### severityScore\n\n severityScore?: number;\n\nThe harm severity score."]]