Record Class ThreadRunStep
java.lang.Object
java.lang.Record
io.github.stefanbratanov.jvm.openai.ThreadRunStep
public record ThreadRunStep(String id, long createdAt, String assistantId, String threadId, String runId, String type, String status, ThreadRunStep.StepDetails stepDetails, ThreadRunStep.LastError lastError, Long expiredAt, Long cancelledAt, Long failedAt, Long completedAt, Map<String,String> metadata)
extends Record
Represents a step in execution of a run.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
The last error associated with this run step.static interface
The 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, ThreadRunStep.LastError lastError, Long expiredAt, Long cancelledAt, Long failedAt, Long completedAt, Map<String, String> metadata) Creates an instance of aThreadRunStep
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theassistantId
record component.Returns the value of thecancelledAt
record component.Returns the value of thecompletedAt
record component.long
Returns the value of thecreatedAt
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theexpiredAt
record component.failedAt()
Returns the value of thefailedAt
record component.final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.Returns the value of thelastError
record component.metadata()
Returns the value of themetadata
record component.runId()
Returns the value of therunId
record component.status()
Returns the value of thestatus
record component.Returns the value of thestepDetails
record component.threadId()
Returns the value of thethreadId
record component.final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.
-
Constructor Details
-
ThreadRunStep
public ThreadRunStep(String id, long createdAt, String assistantId, String threadId, String runId, String type, String status, ThreadRunStep.StepDetails stepDetails, ThreadRunStep.LastError lastError, Long expiredAt, Long cancelledAt, Long failedAt, Long completedAt, Map<String, String> metadata) Creates an instance of aThreadRunStep
record class.- Parameters:
id
- the value for theid
record componentcreatedAt
- the value for thecreatedAt
record componentassistantId
- the value for theassistantId
record componentthreadId
- the value for thethreadId
record componentrunId
- the value for therunId
record componenttype
- the value for thetype
record componentstatus
- the value for thestatus
record componentstepDetails
- the value for thestepDetails
record componentlastError
- the value for thelastError
record componentexpiredAt
- the value for theexpiredAt
record componentcancelledAt
- the value for thecancelledAt
record componentfailedAt
- the value for thefailedAt
record componentcompletedAt
- the value for thecompletedAt
record componentmetadata
- the value for themetadata
record 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 theid
record component.- Returns:
- the value of the
id
record component
-
createdAt
public long createdAt()Returns the value of thecreatedAt
record component.- Returns:
- the value of the
createdAt
record component
-
assistantId
Returns the value of theassistantId
record component.- Returns:
- the value of the
assistantId
record component
-
threadId
Returns the value of thethreadId
record component.- Returns:
- the value of the
threadId
record component
-
runId
Returns the value of therunId
record component.- Returns:
- the value of the
runId
record component
-
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
status
Returns the value of thestatus
record component.- Returns:
- the value of the
status
record component
-
stepDetails
Returns the value of thestepDetails
record component.- Returns:
- the value of the
stepDetails
record component
-
lastError
Returns the value of thelastError
record component.- Returns:
- the value of the
lastError
record component
-
expiredAt
Returns the value of theexpiredAt
record component.- Returns:
- the value of the
expiredAt
record component
-
cancelledAt
Returns the value of thecancelledAt
record component.- Returns:
- the value of the
cancelledAt
record component
-
failedAt
Returns the value of thefailedAt
record component.- Returns:
- the value of the
failedAt
record component
-
completedAt
Returns the value of thecompletedAt
record component.- Returns:
- the value of the
completedAt
record component
-
metadata
Returns the value of themetadata
record component.- Returns:
- the value of the
metadata
record component
-