Package com.github.copilot.sdk.generated
Record Class CompactionCompleteCompactionTokensUsed
java.lang.Object
java.lang.Record
com.github.copilot.sdk.generated.CompactionCompleteCompactionTokensUsed
@Generated("copilot-sdk-codegen")
public record CompactionCompleteCompactionTokensUsed(Double inputTokens, Double outputTokens, Double cacheReadTokens, Double cacheWriteTokens, CompactionCompleteCompactionTokensUsedCopilotUsage copilotUsage, Double duration, String model)
extends Record
Token usage breakdown for the compaction LLM call (aligned with assistant.usage format)
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionCompactionCompleteCompactionTokensUsed(Double inputTokens, Double outputTokens, Double cacheReadTokens, Double cacheWriteTokens, CompactionCompleteCompactionTokensUsedCopilotUsage copilotUsage, Double duration, String model) Creates an instance of aCompactionCompleteCompactionTokensUsedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecacheReadTokensrecord component.Returns the value of thecacheWriteTokensrecord component.Returns the value of thecopilotUsagerecord component.duration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinputTokensrecord component.model()Returns the value of themodelrecord component.Returns the value of theoutputTokensrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CompactionCompleteCompactionTokensUsed
public CompactionCompleteCompactionTokensUsed(Double inputTokens, Double outputTokens, Double cacheReadTokens, Double cacheWriteTokens, CompactionCompleteCompactionTokensUsedCopilotUsage copilotUsage, Double duration, String model) Creates an instance of aCompactionCompleteCompactionTokensUsedrecord class.- Parameters:
inputTokens- the value for theinputTokensrecord componentoutputTokens- the value for theoutputTokensrecord componentcacheReadTokens- the value for thecacheReadTokensrecord componentcacheWriteTokens- the value for thecacheWriteTokensrecord componentcopilotUsage- the value for thecopilotUsagerecord componentduration- the value for thedurationrecord componentmodel- the value for themodelrecord 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). -
inputTokens
Returns the value of theinputTokensrecord component.- Returns:
- the value of the
inputTokensrecord component
-
outputTokens
Returns the value of theoutputTokensrecord component.- Returns:
- the value of the
outputTokensrecord component
-
cacheReadTokens
Returns the value of thecacheReadTokensrecord component.- Returns:
- the value of the
cacheReadTokensrecord component
-
cacheWriteTokens
Returns the value of thecacheWriteTokensrecord component.- Returns:
- the value of the
cacheWriteTokensrecord component
-
copilotUsage
Returns the value of thecopilotUsagerecord component.- Returns:
- the value of the
copilotUsagerecord component
-
duration
Returns the value of thedurationrecord component.- Returns:
- the value of the
durationrecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-