Package-level declarations
Types
Link copied to clipboard
Represents a request to classify text and/or images for policy violations.
Link copied to clipboard
data class Moderation(val id: String, val model: String = "omni-moderation-latest", val results: List<ModerationResult> = emptyList())
Represents the moderation results returned by the OpenAI moderation endpoint.
Link copied to clipboard
Represents a moderation category used to classify content violations.
Link copied to clipboard
data class ModerationResult(val flagged: Boolean = false, val categories: Map<ModerationCategory, Boolean> = emptyMap(), val categoryScores: Map<ModerationCategory, Double> = emptyMap(), val categoryAppliedInputTypes: Map<ModerationCategory, List<InputType>> = emptyMap())
Represents the result of a moderation check performed by the OpenAI moderation endpoint.