Module com.github.copilot.java
Package com.github.copilot.generated.rpc
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 Summary
ConstructorsConstructorDescriptionSessionMetadataContextInfoResultContextInfo(String modelName, Long systemTokens, Long conversationTokens, Long toolDefinitionsTokens, Long totalTokens, Long promptTokenLimit, Long compactionThreshold, Long limit, Long bufferTokens) Creates an instance of aSessionMetadataContextInfoResultContextInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebufferTokensrecord component.Returns the value of thecompactionThresholdrecord component.Returns the value of theconversationTokensrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.limit()Returns the value of thelimitrecord component.Returns the value of themodelNamerecord component.Returns the value of thepromptTokenLimitrecord component.Returns the value of thesystemTokensrecord component.Returns the value of thetoolDefinitionsTokensrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetotalTokensrecord component.
-
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 aSessionMetadataContextInfoResultContextInforecord class.- Parameters:
modelName- the value for themodelNamerecord componentsystemTokens- the value for thesystemTokensrecord componentconversationTokens- the value for theconversationTokensrecord componenttoolDefinitionsTokens- the value for thetoolDefinitionsTokensrecord componenttotalTokens- the value for thetotalTokensrecord componentpromptTokenLimit- the value for thepromptTokenLimitrecord componentcompactionThreshold- the value for thecompactionThresholdrecord componentlimit- the value for thelimitrecord componentbufferTokens- the value for thebufferTokensrecord 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). -
modelName
Returns the value of themodelNamerecord component.- Returns:
- the value of the
modelNamerecord 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
-
totalTokens
Returns the value of thetotalTokensrecord component.- Returns:
- the value of the
totalTokensrecord component
-
promptTokenLimit
Returns the value of thepromptTokenLimitrecord component.- Returns:
- the value of the
promptTokenLimitrecord component
-
compactionThreshold
Returns the value of thecompactionThresholdrecord component.- Returns:
- the value of the
compactionThresholdrecord component
-
limit
Returns the value of thelimitrecord component.- Returns:
- the value of the
limitrecord component
-
bufferTokens
Returns the value of thebufferTokensrecord component.- Returns:
- the value of the
bufferTokensrecord component
-