Record Class AnthropicApi.MessageDeltaEvent.MessageDelta
java.lang.Object
java.lang.Record
org.springframework.ai.anthropic.api.AnthropicApi.MessageDeltaEvent.MessageDelta
- Record Components:
stopReason- The stop reason.stopSequence- The stop sequence.
- Enclosing class:
AnthropicApi.MessageDeltaEvent
public static record AnthropicApi.MessageDeltaEvent.MessageDelta(String stopReason, String stopSequence)
extends Record
- 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
ConstructorsConstructorDescriptionMessageDelta(String stopReason, String stopSequence) Creates an instance of aMessageDeltarecord 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 thestopReasonrecord component.Returns the value of thestopSequencerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MessageDelta
Creates an instance of aMessageDeltarecord class.- Parameters:
stopReason- the value for thestopReasonrecord componentstopSequence- the value for thestopSequencerecord 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). -
stopReason
Returns the value of thestopReasonrecord component.- Returns:
- the value of the
stopReasonrecord component
-
stopSequence
Returns the value of thestopSequencerecord component.- Returns:
- the value of the
stopSequencerecord component
-