Class ModerationRequest
java.lang.Object
dev.langchain4j.model.moderation.ModerationRequest
Represents a moderation request.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ModerationRequest.Builderbuilder()Creates a new builder.booleaninthashCode()@Nullable StringReturns the model name to use for this request.texts()Returns the list of texts to moderate.Converts this instance to aModerationRequest.Builderwith all of the same field values, allowing modifications to the current object's fields.toString()
-
Method Details
-
texts
-
modelName
Returns the model name to use for this request. When set, this overrides the model name configured when theModerationModelwas created.- Returns:
- the model name, or
nullif not specified.
-
equals
-
hashCode
-
toString
-
toBuilder
Converts this instance to aModerationRequest.Builderwith all of the same field values, allowing modifications to the current object's fields.- Returns:
- a new
ModerationRequest.Builderinstance initialized with the current state of thisModerationRequest.
-
builder
-