Record Class SessionHistoryCompactResult.SessionHistoryCompactResultContextWindow
java.lang.Object
java.lang.Record
com.github.copilot.sdk.generated.rpc.SessionHistoryCompactResult.SessionHistoryCompactResultContextWindow
- Enclosing class:
- SessionHistoryCompactResult
public static record SessionHistoryCompactResult.SessionHistoryCompactResultContextWindow(Double tokenLimit, Double currentTokens, Double messagesLength, Double systemTokens, Double conversationTokens, Double toolDefinitionsTokens)
extends Record
Post-compaction context window usage breakdown
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconversationTokensrecord component.Returns the value of thecurrentTokensrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themessagesLengthrecord component.Returns the value of thesystemTokensrecord component.Returns the value of thetokenLimitrecord component.Returns the value of thetoolDefinitionsTokensrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionHistoryCompactResultContextWindow
public SessionHistoryCompactResultContextWindow(Double tokenLimit, Double currentTokens, Double messagesLength, Double systemTokens, Double conversationTokens, Double toolDefinitionsTokens) Creates an instance of aSessionHistoryCompactResultContextWindowrecord class.- Parameters:
tokenLimit- the value for thetokenLimitrecord componentcurrentTokens- the value for thecurrentTokensrecord componentmessagesLength- the value for themessagesLengthrecord componentsystemTokens- the value for thesystemTokensrecord componentconversationTokens- the value for theconversationTokensrecord componenttoolDefinitionsTokens- the value for thetoolDefinitionsTokensrecord 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 withObjects::equals(Object,Object). -
tokenLimit
Returns the value of thetokenLimitrecord component.- Returns:
- the value of the
tokenLimitrecord component
-
currentTokens
Returns the value of thecurrentTokensrecord component.- Returns:
- the value of the
currentTokensrecord component
-
messagesLength
Returns the value of themessagesLengthrecord component.- Returns:
- the value of the
messagesLengthrecord component
-
systemTokens
Returns the value of thesystemTokensrecord component.- Returns:
- the value of the
systemTokensrecord component
-
conversationTokens
Returns the value of theconversationTokensrecord component.- Returns:
- the value of the
conversationTokensrecord component
-
toolDefinitionsTokens
Returns the value of thetoolDefinitionsTokensrecord component.- Returns:
- the value of the
toolDefinitionsTokensrecord component
-