Class CategoryScores
java.lang.Object
org.springframework.ai.moderation.CategoryScores
This class represents the scores for different categories of content. Each category has
a score ranging from 0.0 to 1.0. The scores represent the severity or intensity of the
content in each respective category.
- Since:
- 1.0.0
- Author:
- Ahmed Yousri, Ilayaperumal Gopinathan
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic CategoryScores.Builderbuilder()booleandoubledoubledoublegetHate()doubledoubledoubledoubledoubledoubledoubledoubleinthashCode()toString()
-
Method Details
-
builder
-
getSexual
public double getSexual() -
getHate
public double getHate() -
getHarassment
public double getHarassment() -
getSelfHarm
public double getSelfHarm() -
getSexualMinors
public double getSexualMinors() -
getHateThreatening
public double getHateThreatening() -
getViolenceGraphic
public double getViolenceGraphic() -
getSelfHarmIntent
public double getSelfHarmIntent() -
getSelfHarmInstructions
public double getSelfHarmInstructions() -
getHarassmentThreatening
public double getHarassmentThreatening() -
getViolence
public double getViolence() -
equals
-
hashCode
public int hashCode() -
toString
-