Package com.github.copilot.sdk.generated
Record Class SessionCompactionCompleteEvent.SessionCompactionCompleteEventData
java.lang.Object
java.lang.Record
com.github.copilot.sdk.generated.SessionCompactionCompleteEvent.SessionCompactionCompleteEventData
- Enclosing class:
- SessionCompactionCompleteEvent
public static record SessionCompactionCompleteEvent.SessionCompactionCompleteEventData(Boolean success, String error, Double preCompactionTokens, Double postCompactionTokens, Double preCompactionMessagesLength, Double messagesRemoved, Double tokensRemoved, String summaryContent, Double checkpointNumber, String checkpointPath, SessionCompactionCompleteEvent.SessionCompactionCompleteEventData.SessionCompactionCompleteEventDataCompactionTokensUsed compactionTokensUsed, String requestId, Double systemTokens, Double conversationTokens, Double toolDefinitionsTokens)
extends Record
Data payload for
SessionCompactionCompleteEvent.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordToken usage breakdown for the compaction LLM call -
Constructor Summary
ConstructorsConstructorDescriptionSessionCompactionCompleteEventData(Boolean success, String error, Double preCompactionTokens, Double postCompactionTokens, Double preCompactionMessagesLength, Double messagesRemoved, Double tokensRemoved, String summaryContent, Double checkpointNumber, String checkpointPath, SessionCompactionCompleteEvent.SessionCompactionCompleteEventData.SessionCompactionCompleteEventDataCompactionTokensUsed compactionTokensUsed, String requestId, Double systemTokens, Double conversationTokens, Double toolDefinitionsTokens) Creates an instance of aSessionCompactionCompleteEventDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecheckpointNumberrecord component.Returns the value of thecheckpointPathrecord component.Returns the value of thecompactionTokensUsedrecord component.Returns the value of theconversationTokensrecord component.final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themessagesRemovedrecord component.Returns the value of thepostCompactionTokensrecord component.Returns the value of thepreCompactionMessagesLengthrecord component.Returns the value of thepreCompactionTokensrecord component.Returns the value of therequestIdrecord component.success()Returns the value of thesuccessrecord component.Returns the value of thesummaryContentrecord component.Returns the value of thesystemTokensrecord component.Returns the value of thetokensRemovedrecord component.Returns the value of thetoolDefinitionsTokensrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionCompactionCompleteEventData
public SessionCompactionCompleteEventData(Boolean success, String error, Double preCompactionTokens, Double postCompactionTokens, Double preCompactionMessagesLength, Double messagesRemoved, Double tokensRemoved, String summaryContent, Double checkpointNumber, String checkpointPath, SessionCompactionCompleteEvent.SessionCompactionCompleteEventData.SessionCompactionCompleteEventDataCompactionTokensUsed compactionTokensUsed, String requestId, Double systemTokens, Double conversationTokens, Double toolDefinitionsTokens) Creates an instance of aSessionCompactionCompleteEventDatarecord class.- Parameters:
success- the value for thesuccessrecord componenterror- the value for theerrorrecord componentpreCompactionTokens- the value for thepreCompactionTokensrecord componentpostCompactionTokens- the value for thepostCompactionTokensrecord componentpreCompactionMessagesLength- the value for thepreCompactionMessagesLengthrecord componentmessagesRemoved- the value for themessagesRemovedrecord componenttokensRemoved- the value for thetokensRemovedrecord componentsummaryContent- the value for thesummaryContentrecord componentcheckpointNumber- the value for thecheckpointNumberrecord componentcheckpointPath- the value for thecheckpointPathrecord componentcompactionTokensUsed- the value for thecompactionTokensUsedrecord componentrequestId- the value for therequestIdrecord 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). -
success
Returns the value of thesuccessrecord component.- Returns:
- the value of the
successrecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-
preCompactionTokens
Returns the value of thepreCompactionTokensrecord component.- Returns:
- the value of the
preCompactionTokensrecord component
-
postCompactionTokens
Returns the value of thepostCompactionTokensrecord component.- Returns:
- the value of the
postCompactionTokensrecord component
-
preCompactionMessagesLength
Returns the value of thepreCompactionMessagesLengthrecord component.- Returns:
- the value of the
preCompactionMessagesLengthrecord component
-
messagesRemoved
Returns the value of themessagesRemovedrecord component.- Returns:
- the value of the
messagesRemovedrecord component
-
tokensRemoved
Returns the value of thetokensRemovedrecord component.- Returns:
- the value of the
tokensRemovedrecord component
-
summaryContent
Returns the value of thesummaryContentrecord component.- Returns:
- the value of the
summaryContentrecord component
-
checkpointNumber
Returns the value of thecheckpointNumberrecord component.- Returns:
- the value of the
checkpointNumberrecord component
-
checkpointPath
Returns the value of thecheckpointPathrecord component.- Returns:
- the value of the
checkpointPathrecord component
-
compactionTokensUsed
public SessionCompactionCompleteEvent.SessionCompactionCompleteEventData.SessionCompactionCompleteEventDataCompactionTokensUsed compactionTokensUsed()Returns the value of thecompactionTokensUsedrecord component.- Returns:
- the value of the
compactionTokensUsedrecord component
-
requestId
Returns the value of therequestIdrecord component.- Returns:
- the value of the
requestIdrecord 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
-