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 aInformationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theaggrRespTimeMsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thelastTokensInrecord component.intReturns the value of thelastTokensInCacheHitrecord component.intReturns the value of thelastTokensOutrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalTokensInrecord component.intReturns the value of thetotalTokensInCacheHitrecord component.intReturns the value of thetotalTokensOutrecord component.
-
Constructor Details
-
Information
public Information(int totalTokensInCacheHit, int totalTokensIn, int totalTokensOut, int lastTokensInCacheHit, int lastTokensIn, int lastTokensOut, long aggrRespTimeMs) Creates an instance of aInformationrecord class.- Parameters:
totalTokensInCacheHit- the value for thetotalTokensInCacheHitrecord componenttotalTokensIn- the value for thetotalTokensInrecord componenttotalTokensOut- the value for thetotalTokensOutrecord componentlastTokensInCacheHit- the value for thelastTokensInCacheHitrecord componentlastTokensIn- the value for thelastTokensInrecord componentlastTokensOut- the value for thelastTokensOutrecord componentaggrRespTimeMs- the value for theaggrRespTimeMsrecord 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 thetotalTokensInCacheHitrecord component.- Returns:
- the value of the
totalTokensInCacheHitrecord component
-
totalTokensIn
public int totalTokensIn()Returns the value of thetotalTokensInrecord component.- Returns:
- the value of the
totalTokensInrecord component
-
totalTokensOut
public int totalTokensOut()Returns the value of thetotalTokensOutrecord component.- Returns:
- the value of the
totalTokensOutrecord component
-
lastTokensInCacheHit
public int lastTokensInCacheHit()Returns the value of thelastTokensInCacheHitrecord component.- Returns:
- the value of the
lastTokensInCacheHitrecord component
-
lastTokensIn
public int lastTokensIn()Returns the value of thelastTokensInrecord component.- Returns:
- the value of the
lastTokensInrecord component
-
lastTokensOut
public int lastTokensOut()Returns the value of thelastTokensOutrecord component.- Returns:
- the value of the
lastTokensOutrecord component
-
aggrRespTimeMs
public long aggrRespTimeMs()Returns the value of theaggrRespTimeMsrecord component.- Returns:
- the value of the
aggrRespTimeMsrecord component
-