FirebaseAILogic Framework Reference

HarmBlockMethod

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