Record Class LlmConversationBuilder.Information
java.lang.Object
java.lang.Record
com.pnfsoftware.jeb.client.mcp.llm.LlmConversationBuilder.Information
- Enclosing class:
- LlmConversationBuilder
public static record LlmConversationBuilder.Information(int totalTokensInCacheHit, int totalTokensIn, int totalTokensOut, int lastTokensInCacheHit, int lastTokensIn, int lastTokensOut, long aggrRespTimeMs)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionInformation
(int totalTokensInCacheHit, int totalTokensIn, int totalTokensOut, int lastTokensInCacheHit, int lastTokensIn, int lastTokensOut, long aggrRespTimeMs) Creates an instance of aInformation
record class. -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the value of theaggrRespTimeMs
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.int
Returns the value of thelastTokensIn
record component.int
Returns the value of thelastTokensInCacheHit
record component.int
Returns the value of thelastTokensOut
record component.final String
toString()
Returns a string representation of this record class.int
Returns the value of thetotalTokensIn
record component.int
Returns the value of thetotalTokensInCacheHit
record component.int
Returns the value of thetotalTokensOut
record component.
-
Constructor Details
-
Information
public Information(int totalTokensInCacheHit, int totalTokensIn, int totalTokensOut, int lastTokensInCacheHit, int lastTokensIn, int lastTokensOut, long aggrRespTimeMs) Creates an instance of aInformation
record class.- Parameters:
totalTokensInCacheHit
- the value for thetotalTokensInCacheHit
record componenttotalTokensIn
- the value for thetotalTokensIn
record componenttotalTokensOut
- the value for thetotalTokensOut
record componentlastTokensInCacheHit
- the value for thelastTokensInCacheHit
record componentlastTokensIn
- the value for thelastTokensIn
record componentlastTokensOut
- the value for thelastTokensOut
record componentaggrRespTimeMs
- the value for theaggrRespTimeMs
record 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 with '=='. -
totalTokensInCacheHit
public int totalTokensInCacheHit()Returns the value of thetotalTokensInCacheHit
record component.- Returns:
- the value of the
totalTokensInCacheHit
record component
-
totalTokensIn
public int totalTokensIn()Returns the value of thetotalTokensIn
record component.- Returns:
- the value of the
totalTokensIn
record component
-
totalTokensOut
public int totalTokensOut()Returns the value of thetotalTokensOut
record component.- Returns:
- the value of the
totalTokensOut
record component
-
lastTokensInCacheHit
public int lastTokensInCacheHit()Returns the value of thelastTokensInCacheHit
record component.- Returns:
- the value of the
lastTokensInCacheHit
record component
-
lastTokensIn
public int lastTokensIn()Returns the value of thelastTokensIn
record component.- Returns:
- the value of the
lastTokensIn
record component
-
lastTokensOut
public int lastTokensOut()Returns the value of thelastTokensOut
record component.- Returns:
- the value of the
lastTokensOut
record component
-
aggrRespTimeMs
public long aggrRespTimeMs()Returns the value of theaggrRespTimeMs
record component.- Returns:
- the value of the
aggrRespTimeMs
record component
-