FirebaseVertexAI Framework Reference

HarmBlockMethod

@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
public struct HarmBlockMethod : EncodableProtoEnum, Sendable

The method of computing whether the HarmBlockThreshold has been exceeded.

  • Use both probability and severity scores.

    Declaration

    Swift

    public static let severity: SafetySetting.HarmBlockMethod
  • Use only the probability score.

    Declaration

    Swift

    public static let probability: SafetySetting.HarmBlockMethod