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
ConstructorsConstructorDescriptionCategoryScores(@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 aCategoryScoresrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable Doublecriminal()Returns the value of thecriminalrecord component.@Nullable DoubleReturns the value of thedangerousrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable DoubleReturns the value of thefinancialrecord component.final inthashCode()Returns a hash code value for this object.@Nullable DoubleReturns the value of thehateAndDiscriminationrecord component.@Nullable Doublehealth()Returns the value of thehealthrecord component.@Nullable DoubleReturns the value of thejailbreakingrecord component.@Nullable Doublelaw()Returns the value of thelawrecord component.@Nullable Doublepii()Returns the value of thepiirecord component.@Nullable DoubleselfHarm()Returns the value of theselfHarmrecord component.@Nullable Doublesexual()Returns the value of thesexualrecord component.final StringtoString()Returns a string representation of this record class.@Nullable DoubleReturns the value of theviolenceAndThreatsrecord component.
-
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 aCategoryScoresrecord class.- Parameters:
sexual- the value for thesexualrecord componenthateAndDiscrimination- the value for thehateAndDiscriminationrecord componentviolenceAndThreats- the value for theviolenceAndThreatsrecord componentselfHarm- the value for theselfHarmrecord componentdangerous- the value for thedangerousrecord componentcriminal- the value for thecriminalrecord componenthealth- the value for thehealthrecord componentfinancial- the value for thefinancialrecord componentlaw- the value for thelawrecord componentpii- the value for thepiirecord componentjailbreaking- the value for thejailbreakingrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
sexual
Returns the value of thesexualrecord component.- Returns:
- the value of the
sexualrecord component
-
hateAndDiscrimination
Returns the value of thehateAndDiscriminationrecord component.- Returns:
- the value of the
hateAndDiscriminationrecord component
-
violenceAndThreats
Returns the value of theviolenceAndThreatsrecord component.- Returns:
- the value of the
violenceAndThreatsrecord component
-
selfHarm
Returns the value of theselfHarmrecord component.- Returns:
- the value of the
selfHarmrecord component
-
dangerous
Returns the value of thedangerousrecord component.- Returns:
- the value of the
dangerousrecord component
-
criminal
Returns the value of thecriminalrecord component.- Returns:
- the value of the
criminalrecord component
-
health
Returns the value of thehealthrecord component.- Returns:
- the value of the
healthrecord component
-
financial
Returns the value of thefinancialrecord component.- Returns:
- the value of the
financialrecord component
-
law
Returns the value of thelawrecord component.- Returns:
- the value of the
lawrecord component
-
pii
Returns the value of thepiirecord component.- Returns:
- the value of the
piirecord component
-
jailbreaking
Returns the value of thejailbreakingrecord component.- Returns:
- the value of the
jailbreakingrecord component
-