Record Class SessionMetadataContextInfoResult.SessionMetadataContextInfoResultContextInfo

java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SessionMetadataContextInfoResult.SessionMetadataContextInfoResultContextInfo
Enclosing class:
SessionMetadataContextInfoResult

public static record SessionMetadataContextInfoResult.SessionMetadataContextInfoResultContextInfo(String modelName, Long systemTokens, Long conversationTokens, Long toolDefinitionsTokens, Long totalTokens, Long promptTokenLimit, Long compactionThreshold, Long limit, Long bufferTokens) extends Record
Token-usage breakdown for the session's current context window
  • Constructor Details

    • SessionMetadataContextInfoResultContextInfo

      public SessionMetadataContextInfoResultContextInfo(String modelName, Long systemTokens, Long conversationTokens, Long toolDefinitionsTokens, Long totalTokens, Long promptTokenLimit, Long compactionThreshold, Long limit, Long bufferTokens)
      Creates an instance of a SessionMetadataContextInfoResultContextInfo record class.
      Parameters:
      modelName - the value for the modelName 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
      totalTokens - the value for the totalTokens record component
      promptTokenLimit - the value for the promptTokenLimit record component
      compactionThreshold - the value for the compactionThreshold record component
      limit - the value for the limit record component
      bufferTokens - the value for the bufferTokens 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.
    • modelName

      public String modelName()
      Returns the value of the modelName record component.
      Returns:
      the value of the modelName 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
    • totalTokens

      public Long totalTokens()
      Returns the value of the totalTokens record component.
      Returns:
      the value of the totalTokens record component
    • promptTokenLimit

      public Long promptTokenLimit()
      Returns the value of the promptTokenLimit record component.
      Returns:
      the value of the promptTokenLimit record component
    • compactionThreshold

      public Long compactionThreshold()
      Returns the value of the compactionThreshold record component.
      Returns:
      the value of the compactionThreshold record component
    • limit

      public Long limit()
      Returns the value of the limit record component.
      Returns:
      the value of the limit record component
    • bufferTokens

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