Record Class Logprobs.Refusal
java.lang.Object
java.lang.Record
io.github.stefanbratanov.jvm.openai.Logprobs.Refusal
- Enclosing class:
- Logprobs
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbytes()Returns the value of thebytesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doublelogprob()Returns the value of thelogprobrecord component.token()Returns the value of thetokenrecord component.Returns the value of thetopLogprobsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Refusal
public Refusal(String token, double logprob, List<Byte> bytes, List<Logprobs.TopLogprob> topLogprobs) Creates an instance of aRefusalrecord class.- Parameters:
token- the value for thetokenrecord componentlogprob- the value for thelogprobrecord componentbytes- the value for thebytesrecord componenttopLogprobs- the value for thetopLogprobsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
token
Returns the value of thetokenrecord component.- Returns:
- the value of the
tokenrecord component
-
logprob
public double logprob()Returns the value of thelogprobrecord component.- Returns:
- the value of the
logprobrecord component
-
bytes
Returns the value of thebytesrecord component.- Returns:
- the value of the
bytesrecord component
-
topLogprobs
Returns the value of thetopLogprobsrecord component.- Returns:
- the value of the
topLogprobsrecord component
-