Record Class SessionCompactionCompleteEvent.SessionCompactionCompleteEventData

java.lang.Object
java.lang.Record
com.github.copilot.generated.SessionCompactionCompleteEvent.SessionCompactionCompleteEventData
Enclosing class:
SessionCompactionCompleteEvent

public static record SessionCompactionCompleteEvent.SessionCompactionCompleteEventData(Boolean success, String error, Long preCompactionTokens, Long postCompactionTokens, Long preCompactionMessagesLength, Long messagesRemoved, Long tokensRemoved, String customInstructions, String summaryContent, Long checkpointNumber, String checkpointPath, CompactionCompleteCompactionTokensUsed compactionTokensUsed, String requestId, String serviceRequestId, Long systemTokens, Long conversationTokens, Long toolDefinitionsTokens) extends Record
  • Constructor Details

    • SessionCompactionCompleteEventData

      public SessionCompactionCompleteEventData(Boolean success, String error, Long preCompactionTokens, Long postCompactionTokens, Long preCompactionMessagesLength, Long messagesRemoved, Long tokensRemoved, String customInstructions, String summaryContent, Long checkpointNumber, String checkpointPath, CompactionCompleteCompactionTokensUsed compactionTokensUsed, String requestId, String serviceRequestId, Long systemTokens, Long conversationTokens, Long toolDefinitionsTokens)
      Creates an instance of a SessionCompactionCompleteEventData record class.
      Parameters:
      success - the value for the success record component
      error - the value for the error record component
      preCompactionTokens - the value for the preCompactionTokens record component
      postCompactionTokens - the value for the postCompactionTokens record component
      preCompactionMessagesLength - the value for the preCompactionMessagesLength record component
      messagesRemoved - the value for the messagesRemoved record component
      tokensRemoved - the value for the tokensRemoved record component
      customInstructions - the value for the customInstructions record component
      summaryContent - the value for the summaryContent record component
      checkpointNumber - the value for the checkpointNumber record component
      checkpointPath - the value for the checkpointPath record component
      compactionTokensUsed - the value for the compactionTokensUsed record component
      requestId - the value for the requestId record component
      serviceRequestId - the value for the serviceRequestId record component
      systemTokens - the value for the systemTokens record component
      conversationTokens - the value for the conversationTokens record component
      toolDefinitionsTokens - the value for the toolDefinitionsTokens record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • success

      public Boolean success()
      Returns the value of the success record component.
      Returns:
      the value of the success record component
    • error

      public String error()
      Returns the value of the error record component.
      Returns:
      the value of the error record component
    • preCompactionTokens

      public Long preCompactionTokens()
      Returns the value of the preCompactionTokens record component.
      Returns:
      the value of the preCompactionTokens record component
    • postCompactionTokens

      public Long postCompactionTokens()
      Returns the value of the postCompactionTokens record component.
      Returns:
      the value of the postCompactionTokens record component
    • preCompactionMessagesLength

      public Long preCompactionMessagesLength()
      Returns the value of the preCompactionMessagesLength record component.
      Returns:
      the value of the preCompactionMessagesLength record component
    • messagesRemoved

      public Long messagesRemoved()
      Returns the value of the messagesRemoved record component.
      Returns:
      the value of the messagesRemoved record component
    • tokensRemoved

      public Long tokensRemoved()
      Returns the value of the tokensRemoved record component.
      Returns:
      the value of the tokensRemoved record component
    • customInstructions

      public String customInstructions()
      Returns the value of the customInstructions record component.
      Returns:
      the value of the customInstructions record component
    • summaryContent

      public String summaryContent()
      Returns the value of the summaryContent record component.
      Returns:
      the value of the summaryContent record component
    • checkpointNumber

      public Long checkpointNumber()
      Returns the value of the checkpointNumber record component.
      Returns:
      the value of the checkpointNumber record component
    • checkpointPath

      public String checkpointPath()
      Returns the value of the checkpointPath record component.
      Returns:
      the value of the checkpointPath record component
    • compactionTokensUsed

      public CompactionCompleteCompactionTokensUsed compactionTokensUsed()
      Returns the value of the compactionTokensUsed record component.
      Returns:
      the value of the compactionTokensUsed record component
    • requestId

      public String requestId()
      Returns the value of the requestId record component.
      Returns:
      the value of the requestId record component
    • serviceRequestId

      public String serviceRequestId()
      Returns the value of the serviceRequestId record component.
      Returns:
      the value of the serviceRequestId record component
    • systemTokens

      public Long systemTokens()
      Returns the value of the systemTokens record component.
      Returns:
      the value of the systemTokens record component
    • conversationTokens

      public Long conversationTokens()
      Returns the value of the conversationTokens record component.
      Returns:
      the value of the conversationTokens record component
    • toolDefinitionsTokens

      public Long toolDefinitionsTokens()
      Returns the value of the toolDefinitionsTokens record component.
      Returns:
      the value of the toolDefinitionsTokens record component