Record Class SessionMetadataGetContextHeaviestMessagesResult
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SessionMetadataGetContextHeaviestMessagesResult
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record SessionMetadataGetContextHeaviestMessagesResult(Long totalTokens, List<ContextHeaviestMessage> messages)
extends Record
The heaviest individual messages in the session's context window, most-expensive first.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSessionMetadataGetContextHeaviestMessagesResult(Long totalTokens, List<ContextHeaviestMessage> messages) Creates an instance of aSessionMetadataGetContextHeaviestMessagesResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.messages()Returns the value of themessagesrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetotalTokensrecord component.
-
Constructor Details
-
SessionMetadataGetContextHeaviestMessagesResult
public SessionMetadataGetContextHeaviestMessagesResult(Long totalTokens, List<ContextHeaviestMessage> messages) Creates an instance of aSessionMetadataGetContextHeaviestMessagesResultrecord class.- Parameters:
totalTokens- the value for thetotalTokensrecord componentmessages- the value for themessagesrecord 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). -
totalTokens
Returns the value of thetotalTokensrecord component.- Returns:
- the value of the
totalTokensrecord component
-
messages
Returns the value of themessagesrecord component.- Returns:
- the value of the
messagesrecord component
-