Record Class AnthropicApi.MessageDeltaEvent.MessageDeltaUsage
java.lang.Object
java.lang.Record
org.springframework.ai.anthropic.api.AnthropicApi.MessageDeltaEvent.MessageDeltaUsage
- Record Components:
outputTokens- The output tokens.
- Enclosing class:
AnthropicApi.MessageDeltaEvent
public static record AnthropicApi.MessageDeltaEvent.MessageDeltaUsage(Integer outputTokens)
extends Record
Message delta usage.
- Since:
- 1.0.0
- Author:
- Christian Tzolov, Mariusz Bernacki, Thomas Vitale, Jihoon Kim, Alexandros Pappas, Jonghoon Park, Claudio Silva Junior, Filip Hrisafov, Soby Chacko, Austin Dase
-
Constructor Summary
ConstructorsConstructorDescriptionMessageDeltaUsage(Integer outputTokens) Creates an instance of aMessageDeltaUsagerecord 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.Returns the value of theoutputTokensrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MessageDeltaUsage
Creates an instance of aMessageDeltaUsagerecord class.- Parameters:
outputTokens- the value for theoutputTokensrecord 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). -
outputTokens
Returns the value of theoutputTokensrecord component.- Returns:
- the value of the
outputTokensrecord component
-