ModerationCategoryResult

data class ModerationCategoryResult(val detected: Boolean, val confidenceScore: Double? = null, val appliedInputTypes: List<ModerationResult.InputType> = emptyList())(source)

Represents the detailed result of moderating a specific category of content.

Constructors

Link copied to clipboard
constructor(detected: Boolean, confidenceScore: Double? = null, appliedInputTypes: List<ModerationResult.InputType> = emptyList())

Properties

Link copied to clipboard

A list of input types (e.g., text, image) to which the moderation result applies.

Link copied to clipboard

The confidence score of the detected category, where higher values indicate stronger confidence.

Link copied to clipboard

Indicates whether the category was flagged in the moderation process.