Record Class SessionMetadataGetContextAttributionResult.SessionMetadataGetContextAttributionResultContextAttribution
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SessionMetadataGetContextAttributionResult.SessionMetadataGetContextAttributionResultContextAttribution
- Enclosing class:
SessionMetadataGetContextAttributionResult
public static record SessionMetadataGetContextAttributionResult.SessionMetadataGetContextAttributionResultContextAttribution(Long totalTokens, String modelId, String modelSource, Long promptTokenLimit, Long limit, Long bufferTokens, Long compactionThreshold, SessionMetadataGetContextAttributionResult.SessionMetadataGetContextAttributionResultContextAttribution.SessionMetadataGetContextAttributionResultContextAttributionCategories categories, List<SessionMetadataGetContextAttributionResult.SessionMetadataGetContextAttributionResultContextAttribution.SessionMetadataGetContextAttributionResultContextAttributionEntriesItem> entries, SessionMetadataGetContextAttributionResult.SessionMetadataGetContextAttributionResultContextAttribution.SessionMetadataGetContextAttributionResultContextAttributionCompactions compactions)
extends Record
Per-source token attribution snapshot for the current context window. The heaviest individual messages are available separately via `metadata.getContextHeaviestMessages`.
- Since:
- 1.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordThe six normalized `/context` header buckets, computed from the same tokenization as `entries` so the two never disagree.static final recordSuccessful compaction history for the session.static final record -
Constructor Summary
ConstructorsConstructorDescriptionSessionMetadataGetContextAttributionResultContextAttribution(Long totalTokens, String modelId, String modelSource, Long promptTokenLimit, Long limit, Long bufferTokens, Long compactionThreshold, SessionMetadataGetContextAttributionResult.SessionMetadataGetContextAttributionResultContextAttribution.SessionMetadataGetContextAttributionResultContextAttributionCategories categories, List<SessionMetadataGetContextAttributionResult.SessionMetadataGetContextAttributionResultContextAttribution.SessionMetadataGetContextAttributionResultContextAttributionEntriesItem> entries, SessionMetadataGetContextAttributionResult.SessionMetadataGetContextAttributionResultContextAttribution.SessionMetadataGetContextAttributionResultContextAttributionCompactions compactions) Creates an instance of aSessionMetadataGetContextAttributionResultContextAttributionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebufferTokensrecord component.Returns the value of thecategoriesrecord component.Returns the value of thecompactionsrecord component.Returns the value of thecompactionThresholdrecord component.List<SessionMetadataGetContextAttributionResult.SessionMetadataGetContextAttributionResultContextAttribution.SessionMetadataGetContextAttributionResultContextAttributionEntriesItem> entries()Returns the value of theentriesrecord 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.modelId()Returns the value of themodelIdrecord component.Returns the value of themodelSourcerecord component.Returns the value of thepromptTokenLimitrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetotalTokensrecord component.
-
Constructor Details
-
SessionMetadataGetContextAttributionResultContextAttribution
public SessionMetadataGetContextAttributionResultContextAttribution(Long totalTokens, String modelId, String modelSource, Long promptTokenLimit, Long limit, Long bufferTokens, Long compactionThreshold, SessionMetadataGetContextAttributionResult.SessionMetadataGetContextAttributionResultContextAttribution.SessionMetadataGetContextAttributionResultContextAttributionCategories categories, List<SessionMetadataGetContextAttributionResult.SessionMetadataGetContextAttributionResultContextAttribution.SessionMetadataGetContextAttributionResultContextAttributionEntriesItem> entries, SessionMetadataGetContextAttributionResult.SessionMetadataGetContextAttributionResultContextAttribution.SessionMetadataGetContextAttributionResultContextAttributionCompactions compactions) Creates an instance of aSessionMetadataGetContextAttributionResultContextAttributionrecord class.- Parameters:
totalTokens- the value for thetotalTokensrecord componentmodelId- the value for themodelIdrecord componentmodelSource- the value for themodelSourcerecord componentpromptTokenLimit- the value for thepromptTokenLimitrecord componentlimit- the value for thelimitrecord componentbufferTokens- the value for thebufferTokensrecord componentcompactionThreshold- the value for thecompactionThresholdrecord componentcategories- the value for thecategoriesrecord componententries- the value for theentriesrecord componentcompactions- the value for thecompactionsrecord 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
-
modelId
Returns the value of themodelIdrecord component.- Returns:
- the value of the
modelIdrecord component
-
modelSource
Returns the value of themodelSourcerecord component.- Returns:
- the value of the
modelSourcerecord component
-
promptTokenLimit
Returns the value of thepromptTokenLimitrecord component.- Returns:
- the value of the
promptTokenLimitrecord 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
-
compactionThreshold
Returns the value of thecompactionThresholdrecord component.- Returns:
- the value of the
compactionThresholdrecord component
-
categories
public SessionMetadataGetContextAttributionResult.SessionMetadataGetContextAttributionResultContextAttribution.SessionMetadataGetContextAttributionResultContextAttributionCategories categories()Returns the value of thecategoriesrecord component.- Returns:
- the value of the
categoriesrecord component
-
entries
public List<SessionMetadataGetContextAttributionResult.SessionMetadataGetContextAttributionResultContextAttribution.SessionMetadataGetContextAttributionResultContextAttributionEntriesItem> entries()Returns the value of theentriesrecord component.- Returns:
- the value of the
entriesrecord component
-
compactions
public SessionMetadataGetContextAttributionResult.SessionMetadataGetContextAttributionResultContextAttribution.SessionMetadataGetContextAttributionResultContextAttributionCompactions compactions()Returns the value of thecompactionsrecord component.- Returns:
- the value of the
compactionsrecord component
-