Represents a step in execution of a run.
Name | Type | Description | Notes |
---|---|---|---|
id | String | The identifier of the run step, which can be referenced in API endpoints. | |
_object | ObjectEnum | The object type, which is always `thread.run.step`. | |
createdAt | Integer | The Unix timestamp (in seconds) for when the run step was created. | |
assistantId | String | The ID of the assistant associated with the run step. | |
threadId | String | The ID of the thread that was run. | |
runId | String | The ID of the run that this run step is a part of. | |
type | TypeEnum | The type of run step, which can be either `message_creation` or `tool_calls`. | |
status | StatusEnum | The status of the run step, which can be either `in_progress`, `cancelled`, `failed`, `completed`, or `expired`. | [optional] |
stepDetails | RunStepObjectStepDetails | ||
lastError | RunStepObjectLastError | ||
expiredAt | Integer | The Unix timestamp (in seconds) for when the run step expired. A step is considered expired if the parent run is expired. | [optional] |
cancelledAt | Integer | The Unix timestamp (in seconds) for when the run step was cancelled. | [optional] |
failedAt | Integer | The Unix timestamp (in seconds) for when the run step failed. | [optional] |
completedAt | Integer | The Unix timestamp (in seconds) for when the run step completed. | [optional] |
metadata | Object | Set 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 maximum of 512 characters long. | |
usage | RunStepCompletionUsage | [optional] |
Name | Value |
---|---|
THREAD_RUN_STEP | "thread.run.step" |
Name | Value |
---|---|
MESSAGE_CREATION | "message_creation" |
TOOL_CALLS | "tool_calls" |
Name | Value |
---|---|
IN_PROGRESS | "in_progress" |
CANCELLED | "cancelled" |
FAILED | "failed" |
COMPLETED | "completed" |
EXPIRED | "expired" |