Record Class SessionCompactionStartEvent.SessionCompactionStartEventData
java.lang.Object
java.lang.Record
com.github.copilot.generated.SessionCompactionStartEvent.SessionCompactionStartEventData
- Enclosing class:
SessionCompactionStartEvent
public static record SessionCompactionStartEvent.SessionCompactionStartEventData(String compactionAttemptId, String model, Long systemTokens, Long conversationTokens, Long toolDefinitionsTokens, Long currentTokens, Long tokenLimit, Long targetPromptTokenLimit, String switchTargetModel, CompactionTrigger trigger)
extends Record
Data payload for
SessionCompactionStartEvent.- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSessionCompactionStartEventData(String compactionAttemptId, String model, Long systemTokens, Long conversationTokens, Long toolDefinitionsTokens, Long currentTokens, Long tokenLimit, Long targetPromptTokenLimit, String switchTargetModel, CompactionTrigger trigger) Creates an instance of aSessionCompactionStartEventDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecompactionAttemptIdrecord component.Returns the value of theconversationTokensrecord component.Returns the value of thecurrentTokensrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.model()Returns the value of themodelrecord component.Returns the value of theswitchTargetModelrecord component.Returns the value of thesystemTokensrecord component.Returns the value of thetargetPromptTokenLimitrecord component.Returns the value of thetokenLimitrecord component.Returns the value of thetoolDefinitionsTokensrecord component.final StringtoString()Returns a string representation of this record class.trigger()Returns the value of thetriggerrecord component.
-
Constructor Details
-
SessionCompactionStartEventData
public SessionCompactionStartEventData(String compactionAttemptId, String model, Long systemTokens, Long conversationTokens, Long toolDefinitionsTokens, Long currentTokens, Long tokenLimit, Long targetPromptTokenLimit, String switchTargetModel, CompactionTrigger trigger) Creates an instance of aSessionCompactionStartEventDatarecord class.- Parameters:
compactionAttemptId- the value for thecompactionAttemptIdrecord componentmodel- the value for themodelrecord componentsystemTokens- the value for thesystemTokensrecord componentconversationTokens- the value for theconversationTokensrecord componenttoolDefinitionsTokens- the value for thetoolDefinitionsTokensrecord componentcurrentTokens- the value for thecurrentTokensrecord componenttokenLimit- the value for thetokenLimitrecord componenttargetPromptTokenLimit- the value for thetargetPromptTokenLimitrecord componentswitchTargetModel- the value for theswitchTargetModelrecord componenttrigger- the value for thetriggerrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
compactionAttemptId
Returns the value of thecompactionAttemptIdrecord component.- Returns:
- the value of the
compactionAttemptIdrecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord 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
-
currentTokens
Returns the value of thecurrentTokensrecord component.- Returns:
- the value of the
currentTokensrecord component
-
tokenLimit
Returns the value of thetokenLimitrecord component.- Returns:
- the value of the
tokenLimitrecord component
-
targetPromptTokenLimit
Returns the value of thetargetPromptTokenLimitrecord component.- Returns:
- the value of the
targetPromptTokenLimitrecord component
-
switchTargetModel
Returns the value of theswitchTargetModelrecord component.- Returns:
- the value of the
switchTargetModelrecord component
-
trigger
Returns the value of thetriggerrecord component.- Returns:
- the value of the
triggerrecord component
-