Record Class SessionTruncationEvent.SessionTruncationEventData

java.lang.Object
java.lang.Record
com.github.copilot.sdk.generated.SessionTruncationEvent.SessionTruncationEventData
Enclosing class:
SessionTruncationEvent

public static record SessionTruncationEvent.SessionTruncationEventData(Double tokenLimit, Double preTruncationTokensInMessages, Double preTruncationMessagesLength, Double postTruncationTokensInMessages, Double postTruncationMessagesLength, Double tokensRemovedDuringTruncation, Double messagesRemovedDuringTruncation, String performedBy) extends Record
Data payload for SessionTruncationEvent.
  • Constructor Details

    • SessionTruncationEventData

      public SessionTruncationEventData(Double tokenLimit, Double preTruncationTokensInMessages, Double preTruncationMessagesLength, Double postTruncationTokensInMessages, Double postTruncationMessagesLength, Double tokensRemovedDuringTruncation, Double messagesRemovedDuringTruncation, String performedBy)
      Creates an instance of a SessionTruncationEventData record class.
      Parameters:
      tokenLimit - the value for the tokenLimit record component
      preTruncationTokensInMessages - the value for the preTruncationTokensInMessages record component
      preTruncationMessagesLength - the value for the preTruncationMessagesLength record component
      postTruncationTokensInMessages - the value for the postTruncationTokensInMessages record component
      postTruncationMessagesLength - the value for the postTruncationMessagesLength record component
      tokensRemovedDuringTruncation - the value for the tokensRemovedDuringTruncation record component
      messagesRemovedDuringTruncation - the value for the messagesRemovedDuringTruncation record component
      performedBy - the value for the performedBy 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.
    • tokenLimit

      public Double tokenLimit()
      Returns the value of the tokenLimit record component.
      Returns:
      the value of the tokenLimit record component
    • preTruncationTokensInMessages

      public Double preTruncationTokensInMessages()
      Returns the value of the preTruncationTokensInMessages record component.
      Returns:
      the value of the preTruncationTokensInMessages record component
    • preTruncationMessagesLength

      public Double preTruncationMessagesLength()
      Returns the value of the preTruncationMessagesLength record component.
      Returns:
      the value of the preTruncationMessagesLength record component
    • postTruncationTokensInMessages

      public Double postTruncationTokensInMessages()
      Returns the value of the postTruncationTokensInMessages record component.
      Returns:
      the value of the postTruncationTokensInMessages record component
    • postTruncationMessagesLength

      public Double postTruncationMessagesLength()
      Returns the value of the postTruncationMessagesLength record component.
      Returns:
      the value of the postTruncationMessagesLength record component
    • tokensRemovedDuringTruncation

      public Double tokensRemovedDuringTruncation()
      Returns the value of the tokensRemovedDuringTruncation record component.
      Returns:
      the value of the tokensRemovedDuringTruncation record component
    • messagesRemovedDuringTruncation

      public Double messagesRemovedDuringTruncation()
      Returns the value of the messagesRemovedDuringTruncation record component.
      Returns:
      the value of the messagesRemovedDuringTruncation record component
    • performedBy

      public String performedBy()
      Returns the value of the performedBy record component.
      Returns:
      the value of the performedBy record component