Record Class MistralAiModerationApi.CategoryScores

java.lang.Object
java.lang.Record
org.springframework.ai.mistralai.api.MistralAiModerationApi.CategoryScores
Enclosing class:
MistralAiModerationApi

public static record MistralAiModerationApi.CategoryScores(@Nullable Double sexual, @Nullable Double hateAndDiscrimination, @Nullable Double violenceAndThreats, @Nullable Double selfHarm, @Nullable Double dangerous, @Nullable Double criminal, @Nullable Double health, @Nullable Double financial, @Nullable Double law, @Nullable Double pii, @Nullable Double jailbreaking) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    CategoryScores(@Nullable Double sexual, @Nullable Double hateAndDiscrimination, @Nullable Double violenceAndThreats, @Nullable Double selfHarm, @Nullable Double dangerous, @Nullable Double criminal, @Nullable Double health, @Nullable Double financial, @Nullable Double law, @Nullable Double pii, @Nullable Double jailbreaking)
    Creates an instance of a CategoryScores record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable Double
    Returns the value of the criminal record component.
    @Nullable Double
    Returns the value of the dangerous record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    @Nullable Double
    Returns the value of the financial record component.
    final int
    Returns a hash code value for this object.
    @Nullable Double
    Returns the value of the hateAndDiscrimination record component.
    @Nullable Double
    Returns the value of the health record component.
    @Nullable Double
    Returns the value of the jailbreaking record component.
    @Nullable Double
    law()
    Returns the value of the law record component.
    @Nullable Double
    pii()
    Returns the value of the pii record component.
    @Nullable Double
    Returns the value of the selfHarm record component.
    @Nullable Double
    Returns the value of the sexual record component.
    final String
    Returns a string representation of this record class.
    @Nullable Double
    Returns the value of the violenceAndThreats record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CategoryScores

      public CategoryScores(@Nullable Double sexual, @Nullable Double hateAndDiscrimination, @Nullable Double violenceAndThreats, @Nullable Double selfHarm, @Nullable Double dangerous, @Nullable Double criminal, @Nullable Double health, @Nullable Double financial, @Nullable Double law, @Nullable Double pii, @Nullable Double jailbreaking)
      Creates an instance of a CategoryScores record class.
      Parameters:
      sexual - the value for the sexual record component
      hateAndDiscrimination - the value for the hateAndDiscrimination record component
      violenceAndThreats - the value for the violenceAndThreats record component
      selfHarm - the value for the selfHarm record component
      dangerous - the value for the dangerous record component
      criminal - the value for the criminal record component
      health - the value for the health record component
      financial - the value for the financial record component
      law - the value for the law record component
      pii - the value for the pii record component
      jailbreaking - the value for the jailbreaking record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • sexual

      public @Nullable Double sexual()
      Returns the value of the sexual record component.
      Returns:
      the value of the sexual record component
    • hateAndDiscrimination

      public @Nullable Double hateAndDiscrimination()
      Returns the value of the hateAndDiscrimination record component.
      Returns:
      the value of the hateAndDiscrimination record component
    • violenceAndThreats

      public @Nullable Double violenceAndThreats()
      Returns the value of the violenceAndThreats record component.
      Returns:
      the value of the violenceAndThreats record component
    • selfHarm

      public @Nullable Double selfHarm()
      Returns the value of the selfHarm record component.
      Returns:
      the value of the selfHarm record component
    • dangerous

      public @Nullable Double dangerous()
      Returns the value of the dangerous record component.
      Returns:
      the value of the dangerous record component
    • criminal

      public @Nullable Double criminal()
      Returns the value of the criminal record component.
      Returns:
      the value of the criminal record component
    • health

      public @Nullable Double health()
      Returns the value of the health record component.
      Returns:
      the value of the health record component
    • financial

      public @Nullable Double financial()
      Returns the value of the financial record component.
      Returns:
      the value of the financial record component
    • law

      public @Nullable Double law()
      Returns the value of the law record component.
      Returns:
      the value of the law record component
    • pii

      public @Nullable Double pii()
      Returns the value of the pii record component.
      Returns:
      the value of the pii record component
    • jailbreaking

      public @Nullable Double jailbreaking()
      Returns the value of the jailbreaking record component.
      Returns:
      the value of the jailbreaking record component