Class ModerationResponse
java.lang.Object
dev.langchain4j.model.moderation.ModerationResponse
Represents a moderation response.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ModerationResponse.Builderbuilder()Creates a new builder.booleaninthashCode()metadata()Returns the metadata.Returns the moderation result.Converts this instance to aModerationResponse.Builderwith all of the same field values, allowing modifications to the current object's fields.toString()
-
Method Details
-
moderation
-
metadata
-
equals
-
hashCode
-
toString
-
toBuilder
Converts this instance to aModerationResponse.Builderwith all of the same field values, allowing modifications to the current object's fields.- Returns:
- a new
ModerationResponse.Builderinstance initialized with the current state of thisModerationResponse.
-
builder
-