TextModeration

@Serializable
class TextModeration(val id: String, val model: ModerationModel, val results: List<ModerationResult>)

Moderation response.

Constructors

Link copied to clipboard
constructor(id: String, model: ModerationModel, results: List<ModerationResult>)

Properties

Link copied to clipboard
@SerialName(value = "id")
val id: String

Moderation response id.

Link copied to clipboard
@SerialName(value = "model")
val model: ModerationModel

Model used for moderation response.

Link copied to clipboard
@SerialName(value = "results")
val results: List<ModerationResult>

Moderation results.