toggle menu
openai-kotlin
common
switch theme
search in API
openai-core
/
com.aallam.openai.api.moderation
/
TextModeration
Text
Moderation
@
Serializable
class
TextModeration
(
val
id
:
String
,
val
model
:
ModerationModel
,
val
results
:
List
<
ModerationResult
>
)
Moderation response.
Members
Constructors
Text
Moderation
Link copied to clipboard
constructor
(
id
:
String
,
model
:
ModerationModel
,
results
:
List
<
ModerationResult
>
)
Properties
id
Link copied to clipboard
@
SerialName
(
value
=
"id"
)
val
id
:
String
Moderation response id.
model
Link copied to clipboard
@
SerialName
(
value
=
"model"
)
val
model
:
ModerationModel
Model used for moderation response.
results
Link copied to clipboard
@
SerialName
(
value
=
"results"
)
val
results
:
List
<
ModerationResult
>
Moderation results.