Record Class BedrockAi21Jurassic2ChatOptions.Penalty
java.lang.Object
java.lang.Record
org.springframework.ai.bedrock.jurassic2.BedrockAi21Jurassic2ChatOptions.Penalty
- Record Components:
scale
- The scale of the penalty.applyToNumbers
- Whether to apply the penalty to numbers.applyToPunctuations
- Whether to apply the penalty to punctuations.applyToStopwords
- Whether to apply the penalty to stopwords.applyToWhitespaces
- Whether to apply the penalty to whitespaces.applyToEmojis
- Whether to apply the penalty to emojis.
- Enclosing class:
- BedrockAi21Jurassic2ChatOptions
public static record BedrockAi21Jurassic2ChatOptions.Penalty(Double scale, Boolean applyToNumbers, Boolean applyToPunctuations, Boolean applyToStopwords, Boolean applyToWhitespaces, Boolean applyToEmojis)
extends Record
Penalty object for frequency, presence, and count penalties.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theapplyToEmojis
record component.Returns the value of theapplyToNumbers
record component.Returns the value of theapplyToPunctuations
record component.Returns the value of theapplyToStopwords
record component.Returns the value of theapplyToWhitespaces
record component.builder()
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.scale()
Returns the value of thescale
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Penalty
public Penalty(Double scale, Boolean applyToNumbers, Boolean applyToPunctuations, Boolean applyToStopwords, Boolean applyToWhitespaces, Boolean applyToEmojis) Creates an instance of aPenalty
record class.- Parameters:
scale
- the value for thescale
record componentapplyToNumbers
- the value for theapplyToNumbers
record componentapplyToPunctuations
- the value for theapplyToPunctuations
record componentapplyToStopwords
- the value for theapplyToStopwords
record componentapplyToWhitespaces
- the value for theapplyToWhitespaces
record componentapplyToEmojis
- the value for theapplyToEmojis
record component
-
-
Method Details
-
builder
-
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)
. -
scale
Returns the value of thescale
record component.- Returns:
- the value of the
scale
record component
-
applyToNumbers
Returns the value of theapplyToNumbers
record component.- Returns:
- the value of the
applyToNumbers
record component
-
applyToPunctuations
Returns the value of theapplyToPunctuations
record component.- Returns:
- the value of the
applyToPunctuations
record component
-
applyToStopwords
Returns the value of theapplyToStopwords
record component.- Returns:
- the value of the
applyToStopwords
record component
-
applyToWhitespaces
Returns the value of theapplyToWhitespaces
record component.- Returns:
- the value of the
applyToWhitespaces
record component
-
applyToEmojis
Returns the value of theapplyToEmojis
record component.- Returns:
- the value of the
applyToEmojis
record component
-