Moderation

data class Moderation(val action: ModerationAction, val originalText: String, val textHarms: List<String>, val imageHarms: List<String>, val blocklistMatched: String?, val semanticFilterMatched: String?, val platformCircumvented: Boolean)

Model holding data for a message moderated by Moderation V2.

Constructors

Link copied to clipboard
constructor(action: ModerationAction, originalText: String, textHarms: List<String>, imageHarms: List<String>, blocklistMatched: String?, semanticFilterMatched: String?, platformCircumvented: Boolean)

Properties

Link copied to clipboard

The action taken by the moderation system.

Link copied to clipboard

The blocklist matched by the message.

Link copied to clipboard

The list of harmful images detected in the message.

Link copied to clipboard

The original text of the message.

Link copied to clipboard

true/false if the message triggered the platform circumvention model.

Link copied to clipboard

The semantic filter matched by the message.

Link copied to clipboard

The list of harmful text detected in the message.