Class Categories

java.lang.Object
org.springframework.ai.moderation.Categories

public class Categories extends Object
The Categories class represents a set of categories used to classify content. Each category can be either true (indicating that the content belongs to the category) or false (indicating that the content does not belong to the category).
Since:
1.0.0
Author:
Ahmed Yousri
  • Method Details

    • isSexual

      public boolean isSexual()
    • isHate

      public boolean isHate()
    • isHarassment

      public boolean isHarassment()
    • isSelfHarm

      public boolean isSelfHarm()
    • isSexualMinors

      public boolean isSexualMinors()
    • isHateThreatening

      public boolean isHateThreatening()
    • isViolenceGraphic

      public boolean isViolenceGraphic()
    • isSelfHarmIntent

      public boolean isSelfHarmIntent()
    • isSelfHarmInstructions

      public boolean isSelfHarmInstructions()
    • isHarassmentThreatening

      public boolean isHarassmentThreatening()
    • isViolence

      public boolean isViolence()
    • builder

      public static Categories.Builder builder()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object