Package com.openai.models
Interface ModerationCreateParams.Input.Visitor
-
- All Implemented Interfaces:
public interface ModerationCreateParams.Input.Visitor<T extends Object>
-
-
Method Summary
Modifier and Type Method Description abstract T
visitString(String string)
A string of text to classify for moderation. abstract T
visitStrings(List<String> strings)
An array of strings to classify for moderation. abstract T
visitModerationMultiModalArray(List<ModerationMultiModalInput> moderationMultiModalArray)
An array of multi-modal inputs to the moderation model. T
unknown(JsonValue json)
Maps an unknown variant of Input to a value of type T. -
-
Method Detail
-
visitString
abstract T visitString(String string)
A string of text to classify for moderation.
-
visitStrings
abstract T visitStrings(List<String> strings)
An array of strings to classify for moderation.
-
visitModerationMultiModalArray
abstract T visitModerationMultiModalArray(List<ModerationMultiModalInput> moderationMultiModalArray)
An array of multi-modal inputs to the moderation model.
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of Input to a value of type T.
An instance of Input can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of.
-
-
-
-