You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// in the Google Cloud documentation for more details.
34
41
publicletprobabilityScore:Float
35
42
43
+
/// The severity reflects the magnitude of how harmful a model response might be.
44
+
///
45
+
/// See ``HarmSeverity`` for a list of possible values. This is a discretized representation of
46
+
/// the ``severityScore``.
36
47
publicletseverity:HarmSeverity
37
48
49
+
/// The severity score is the magnitude of how harmful a model response might be.
50
+
///
51
+
/// The severity score ranges from 0.0 to 1.0, rounded to one decimal place; it is discretized
52
+
/// into a ``HarmSeverity`` in ``severity``. See [severity scores](https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/configure-safety-filters#comparison_of_probability_scores_and_severity_scores)
53
+
/// in the Google Cloud documentation for more details.
38
54
publicletseverityScore:Float
39
55
56
+
/// If true, the response was blocked.
40
57
publicletblocked:Bool
41
58
42
59
/// Initializes a new `SafetyRating` instance with the given category and probability.
0 commit comments