Record Class RunnableResponse
java.lang.Object
java.lang.Record
bg.codexio.ai.openai.api.payload.run.response.RunnableResponse
- All Implemented Interfaces:
Mergeable<RunnableResponse>
public record RunnableResponse(String id, String object, Integer createdAt, String assistantId, String threadId, String status, RequiredAction requiredAction, LastError lastError, Integer expiresAt, Integer startedAt, Integer cancelledAt, Integer failedAt, Integer completedAt, String model, String instructions, List<AssistantTool> tools, List<String> fileIds, Map<String,String> metadata)
extends Record
implements Mergeable<RunnableResponse>
-
Constructor Summary
ConstructorsConstructorDescriptionRunnableResponse(String id, String object, Integer createdAt, String assistantId, String threadId, String status, RequiredAction requiredAction, LastError lastError, Integer expiresAt, Integer startedAt, Integer cancelledAt, Integer failedAt, Integer completedAt, String model, String instructions, List<AssistantTool> tools, List<String> fileIds, Map<String, String> metadata) Creates an instance of aRunnableResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theassistantIdrecord component.Returns the value of thecancelledAtrecord component.Returns the value of thecompletedAtrecord component.Returns the value of thecreatedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpiresAtrecord component.failedAt()Returns the value of thefailedAtrecord component.fileIds()Returns the value of thefileIdsrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theinstructionsrecord component.Returns the value of thelastErrorrecord component.merge(RunnableResponse other) metadata()Returns the value of themetadatarecord component.model()Returns the value of themodelrecord component.object()Returns the value of theobjectrecord component.Returns the value of therequiredActionrecord component.Returns the value of thestartedAtrecord component.status()Returns the value of thestatusrecord component.threadId()Returns the value of thethreadIdrecord component.tools()Returns the value of thetoolsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RunnableResponse
public RunnableResponse(String id, String object, Integer createdAt, String assistantId, String threadId, String status, RequiredAction requiredAction, LastError lastError, Integer expiresAt, Integer startedAt, Integer cancelledAt, Integer failedAt, Integer completedAt, String model, String instructions, List<AssistantTool> tools, List<String> fileIds, Map<String, String> metadata) Creates an instance of aRunnableResponserecord class.- Parameters:
id- the value for theidrecord componentobject- the value for theobjectrecord componentcreatedAt- the value for thecreatedAtrecord componentassistantId- the value for theassistantIdrecord componentthreadId- the value for thethreadIdrecord componentstatus- the value for thestatusrecord componentrequiredAction- the value for therequiredActionrecord componentlastError- the value for thelastErrorrecord componentexpiresAt- the value for theexpiresAtrecord componentstartedAt- the value for thestartedAtrecord componentcancelledAt- the value for thecancelledAtrecord componentfailedAt- the value for thefailedAtrecord componentcompletedAt- the value for thecompletedAtrecord componentmodel- the value for themodelrecord componentinstructions- the value for theinstructionsrecord componenttools- the value for thetoolsrecord componentfileIds- the value for thefileIdsrecord componentmetadata- the value for themetadatarecord component
-
-
Method Details
-
merge
- Specified by:
mergein interfaceMergeable<RunnableResponse>
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
object
Returns the value of theobjectrecord component.- Returns:
- the value of the
objectrecord component
-
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
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
requiredAction
Returns the value of therequiredActionrecord component.- Returns:
- the value of the
requiredActionrecord component
-
lastError
Returns the value of thelastErrorrecord component.- Returns:
- the value of the
lastErrorrecord component
-
expiresAt
Returns the value of theexpiresAtrecord component.- Returns:
- the value of the
expiresAtrecord component
-
startedAt
Returns the value of thestartedAtrecord component.- Returns:
- the value of the
startedAtrecord 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
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
instructions
Returns the value of theinstructionsrecord component.- Returns:
- the value of the
instructionsrecord component
-
tools
Returns the value of thetoolsrecord component.- Returns:
- the value of the
toolsrecord component
-
fileIds
Returns the value of thefileIdsrecord component.- Returns:
- the value of the
fileIdsrecord component
-
metadata
Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-