Package com.github.copilot.sdk.events
Record Class SessionCompactionCompleteEvent.SessionCompactionCompleteData
java.lang.Object
java.lang.Record
com.github.copilot.sdk.events.SessionCompactionCompleteEvent.SessionCompactionCompleteData
- Enclosing class:
- SessionCompactionCompleteEvent
public static record SessionCompactionCompleteEvent.SessionCompactionCompleteData(boolean success, String error, Double preCompactionTokens, Double postCompactionTokens, Double preCompactionMessagesLength, Double messagesRemoved, Double tokensRemoved, String summaryContent, Double checkpointNumber, String checkpointPath, SessionCompactionCompleteEvent.CompactionTokensUsed compactionTokensUsed, String requestId)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSessionCompactionCompleteData(boolean success, String error, Double preCompactionTokens, Double postCompactionTokens, Double preCompactionMessagesLength, Double messagesRemoved, Double tokensRemoved, String summaryContent, Double checkpointNumber, String checkpointPath, SessionCompactionCompleteEvent.CompactionTokensUsed compactionTokensUsed, String requestId) Creates an instance of aSessionCompactionCompleteDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecheckpointNumberrecord component.Returns the value of thecheckpointPathrecord component.Returns the value of thecompactionTokensUsedrecord 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.booleansuccess()Returns the value of thesuccessrecord component.Returns the value of thesummaryContentrecord component.Returns the value of thetokensRemovedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionCompactionCompleteData
public SessionCompactionCompleteData(boolean success, String error, Double preCompactionTokens, Double postCompactionTokens, Double preCompactionMessagesLength, Double messagesRemoved, Double tokensRemoved, String summaryContent, Double checkpointNumber, String checkpointPath, SessionCompactionCompleteEvent.CompactionTokensUsed compactionTokensUsed, String requestId) Creates an instance of aSessionCompactionCompleteDatarecord 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 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 '=='. -
success
public boolean 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
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
-