Record Class ThreadRunStep
java.lang.Object
java.lang.Record
io.github.stefanbratanov.jvm.openai.ThreadRunStep
- All Implemented Interfaces:
AssistantStreamEvent.Data
public record ThreadRunStep(String id, long createdAt, String assistantId, String threadId, String runId, String type, String status, ThreadRunStep.StepDetails stepDetails, LastError lastError, Long expiredAt, Long cancelledAt, Long failedAt, Long completedAt, Map<String,String> metadata, Usage usage)
extends Record
implements AssistantStreamEvent.Data
Represents a step in execution of a run.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe details of the run step. -
Constructor Summary
ConstructorsConstructorDescriptionThreadRunStep(String id, long createdAt, String assistantId, String threadId, String runId, String type, String status, ThreadRunStep.StepDetails stepDetails, LastError lastError, Long expiredAt, Long cancelledAt, Long failedAt, Long completedAt, Map<String, String> metadata, Usage usage) Creates an instance of aThreadRunSteprecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theassistantIdrecord component.Returns the value of thecancelledAtrecord component.Returns the value of thecompletedAtrecord component.longReturns the value of thecreatedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpiredAtrecord component.failedAt()Returns the value of thefailedAtrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of thelastErrorrecord component.metadata()Returns the value of themetadatarecord component.runId()Returns the value of therunIdrecord component.status()Returns the value of thestatusrecord component.Returns the value of thestepDetailsrecord component.threadId()Returns the value of thethreadIdrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.usage()Returns the value of theusagerecord component.
-
Constructor Details
-
ThreadRunStep
public ThreadRunStep(String id, long createdAt, String assistantId, String threadId, String runId, String type, String status, ThreadRunStep.StepDetails stepDetails, LastError lastError, Long expiredAt, Long cancelledAt, Long failedAt, Long completedAt, Map<String, String> metadata, Usage usage) Creates an instance of aThreadRunSteprecord class.- Parameters:
id- the value for theidrecord componentcreatedAt- the value for thecreatedAtrecord componentassistantId- the value for theassistantIdrecord componentthreadId- the value for thethreadIdrecord componentrunId- the value for therunIdrecord componenttype- the value for thetyperecord componentstatus- the value for thestatusrecord componentstepDetails- the value for thestepDetailsrecord componentlastError- the value for thelastErrorrecord componentexpiredAt- the value for theexpiredAtrecord componentcancelledAt- the value for thecancelledAtrecord componentfailedAt- the value for thefailedAtrecord componentcompletedAt- the value for thecompletedAtrecord componentmetadata- the value for themetadatarecord componentusage- the value for theusagerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
createdAt
public long createdAt()Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
assistantId
Returns the value of theassistantIdrecord component.- Returns:
- the value of the
assistantIdrecord component
-
threadId
Returns the value of thethreadIdrecord component.- Returns:
- the value of the
threadIdrecord component
-
runId
Returns the value of therunIdrecord component.- Returns:
- the value of the
runIdrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
stepDetails
Returns the value of thestepDetailsrecord component.- Returns:
- the value of the
stepDetailsrecord component
-
lastError
Returns the value of thelastErrorrecord component.- Returns:
- the value of the
lastErrorrecord component
-
expiredAt
Returns the value of theexpiredAtrecord component.- Returns:
- the value of the
expiredAtrecord component
-
cancelledAt
Returns the value of thecancelledAtrecord component.- Returns:
- the value of the
cancelledAtrecord component
-
failedAt
Returns the value of thefailedAtrecord component.- Returns:
- the value of the
failedAtrecord component
-
completedAt
Returns the value of thecompletedAtrecord component.- Returns:
- the value of the
completedAtrecord component
-
metadata
Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-
usage
Returns the value of theusagerecord component.- Returns:
- the value of the
usagerecord component
-