Package com.github.copilot.sdk.generated
Record Class SessionShutdownEvent.SessionShutdownEventData.SessionShutdownEventDataModelMetricsValue.SessionShutdownEventDataModelMetricsValueUsage
java.lang.Object
java.lang.Record
com.github.copilot.sdk.generated.SessionShutdownEvent.SessionShutdownEventData.SessionShutdownEventDataModelMetricsValue.SessionShutdownEventDataModelMetricsValueUsage
- Enclosing class:
- SessionShutdownEvent.SessionShutdownEventData.SessionShutdownEventDataModelMetricsValue
public static record SessionShutdownEvent.SessionShutdownEventData.SessionShutdownEventDataModelMetricsValue.SessionShutdownEventDataModelMetricsValueUsage(Double inputTokens, Double outputTokens, Double cacheReadTokens, Double cacheWriteTokens, Double reasoningTokens)
extends Record
Token usage breakdown
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecacheReadTokensrecord component.Returns the value of thecacheWriteTokensrecord 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.Returns the value of theoutputTokensrecord component.Returns the value of thereasoningTokensrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionShutdownEventDataModelMetricsValueUsage
public SessionShutdownEventDataModelMetricsValueUsage(Double inputTokens, Double outputTokens, Double cacheReadTokens, Double cacheWriteTokens, Double reasoningTokens) Creates an instance of aSessionShutdownEventDataModelMetricsValueUsagerecord class.- Parameters:
inputTokens- the value for theinputTokensrecord componentoutputTokens- the value for theoutputTokensrecord componentcacheReadTokens- the value for thecacheReadTokensrecord componentcacheWriteTokens- the value for thecacheWriteTokensrecord componentreasoningTokens- the value for thereasoningTokensrecord 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
-
reasoningTokens
Returns the value of thereasoningTokensrecord component.- Returns:
- the value of the
reasoningTokensrecord component
-