_id Id — OPTIONALMongoDB document ObjectID |
id IdThe identifier, which can be referenced in API endpoints. |
object Object22Possible values: [thread.run ] The object type, which is always thread.run . |
created_at Created AtThe Unix timestamp (in seconds) for when the run was created. |
thread_id Thread IdThe ID of the thread that was executed on as a part of this run. |
assistant_id Assistant IdThe ID of the assistant used for execution of this run. |
status Status2Possible values: [queued , in_progress , requires_action , cancelling , cancelled , failed , completed , expired ] The status of the run, which can be either queued , in_progress , requires_action , cancelling , cancelled , failed , completed , or expired . |
required_action object — OPTIONALDetails on the action required to continue the run. Will be null if no action is required. type Type10Possible values: [submit_tool_outputs ] For now, this is always submit_tool_outputs . | submit_tool_outputs objectDetails on the tool outputs needed for this run to continue. tool_calls object[]A list of the relevant tool calls. id IdThe ID of the tool call. This ID must be referenced when you submit the tool outputs in using the Submit tool outputs to run endpoint. | type Type11Possible values: [function ] The type of tool call the output is required for. For now, this is always function . | function objectname NameThe name of the function. | arguments ArgumentsThe arguments that the model expects you to pass to the function. |
|
|
|
|
last_error object — OPTIONALThe last error associated with this run. Will be null if there are no errors. code CodePossible values: [server_error , rate_limit_exceeded ] One of server_error or rate_limit_exceeded . | message MessageA human-readable description of the error. |
|
expires_at Expires At — OPTIONALThe Unix timestamp (in seconds) for when the run will expire. |
started_at Started At — OPTIONALThe Unix timestamp (in seconds) for when the run was started. |
cancelled_at Cancelled At — OPTIONALThe Unix timestamp (in seconds) for when the run was cancelled. |
failed_at Failed At — OPTIONALThe Unix timestamp (in seconds) for when the run failed. |
completed_at Completed At — OPTIONALThe Unix timestamp (in seconds) for when the run was completed. |
model ModelThe model that the assistant used for this run. |
instructions InstructionsThe instructions that the assistant used for this run. |
tools undefined[]The list of tools that the assistant used for this run. |
file_ids string[] |
metadata objectSet of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format. Keys can be a maximum of 64 characters long and values can be a maxium of 512 characters long. |