Record Class SessionMetadataGetContextAttributionResult.SessionMetadataGetContextAttributionResultContextAttribution.SessionMetadataGetContextAttributionResultContextAttributionCategories
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SessionMetadataGetContextAttributionResult.SessionMetadataGetContextAttributionResultContextAttribution.SessionMetadataGetContextAttributionResultContextAttributionCategories
- Enclosing class:
SessionMetadataGetContextAttributionResult.SessionMetadataGetContextAttributionResultContextAttribution
public static record SessionMetadataGetContextAttributionResult.SessionMetadataGetContextAttributionResultContextAttribution.SessionMetadataGetContextAttributionResultContextAttributionCategories(Long systemPrompt, Long customInstructions, Long systemTools, Long mcpTools, Long messages, Long freeSpace, Long buffer)
extends Record
The six normalized `/context` header buckets, computed from the same tokenization as `entries` so the two never disagree. Convenience rollups: `freeSpace` and `buffer` describe window capacity rather than occupied context, so the values do not sum to `totalTokens`.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSessionMetadataGetContextAttributionResultContextAttributionCategories(Long systemPrompt, Long customInstructions, Long systemTools, Long mcpTools, Long messages, Long freeSpace, Long buffer) Creates an instance of aSessionMetadataGetContextAttributionResultContextAttributionCategoriesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuffer()Returns the value of thebufferrecord component.Returns the value of thecustomInstructionsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefreeSpacerecord component.final inthashCode()Returns a hash code value for this object.mcpTools()Returns the value of themcpToolsrecord component.messages()Returns the value of themessagesrecord component.Returns the value of thesystemPromptrecord component.Returns the value of thesystemToolsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionMetadataGetContextAttributionResultContextAttributionCategories
public SessionMetadataGetContextAttributionResultContextAttributionCategories(Long systemPrompt, Long customInstructions, Long systemTools, Long mcpTools, Long messages, Long freeSpace, Long buffer) Creates an instance of aSessionMetadataGetContextAttributionResultContextAttributionCategoriesrecord class.- Parameters:
systemPrompt- the value for thesystemPromptrecord componentcustomInstructions- the value for thecustomInstructionsrecord componentsystemTools- the value for thesystemToolsrecord componentmcpTools- the value for themcpToolsrecord componentmessages- the value for themessagesrecord componentfreeSpace- the value for thefreeSpacerecord componentbuffer- the value for thebufferrecord 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). -
systemPrompt
Returns the value of thesystemPromptrecord component.- Returns:
- the value of the
systemPromptrecord component
-
customInstructions
Returns the value of thecustomInstructionsrecord component.- Returns:
- the value of the
customInstructionsrecord component
-
systemTools
Returns the value of thesystemToolsrecord component.- Returns:
- the value of the
systemToolsrecord component
-
mcpTools
Returns the value of themcpToolsrecord component.- Returns:
- the value of the
mcpToolsrecord component
-
messages
Returns the value of themessagesrecord component.- Returns:
- the value of the
messagesrecord component
-
freeSpace
Returns the value of thefreeSpacerecord component.- Returns:
- the value of the
freeSpacerecord component
-
buffer
Returns the value of thebufferrecord component.- Returns:
- the value of the
bufferrecord component
-