Class RaiFilter (0.4.0)

RaiFilter(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Responsible AI filter.

Attributes

Name Description
filter_type google.cloud.modelarmor_v1.types.RaiFilterType
Required. Type of responsible AI filter.
confidence_level google.cloud.modelarmor_v1.types.DetectionConfidenceLevel
Optional. Confidence level for this RAI filter. During data sanitization, if data is classified under this filter with a confidence level equal to or greater than the specified level, a positive match is reported. If the confidence level is unspecified (i.e., 0), the system will use a reasonable default level based on the filter_type.