Record Class CohereChatBedrockApi.CohereChatRequest.LogitBias
java.lang.Object
java.lang.Record
org.springframework.ai.bedrock.cohere.api.CohereChatBedrockApi.CohereChatRequest.LogitBias
- Record Components:
token
- The token likelihoods.bias
- A float between -10 and 10.
- Enclosing class:
- CohereChatBedrockApi.CohereChatRequest
public static record CohereChatBedrockApi.CohereChatRequest.LogitBias(String token, Float bias)
extends Record
Prevents the model from generating unwanted tokens or incentivize the model to include desired tokens.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbias()
Returns the value of thebias
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.token()
Returns the value of thetoken
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
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)
. -
token
Returns the value of thetoken
record component.- Returns:
- the value of the
token
record component
-
bias
Returns the value of thebias
record component.- Returns:
- the value of the
bias
record component
-