RunStepData

sttp.openai.requests.threads.runs.ThreadRunsResponseData.RunStepData
See theRunStepData companion object
case class RunStepData(id: String, `object`: String, createdAt: Int, assistantId: String, threadId: String, runId: String, `type`: String, status: String, stepDetails: StepDetails, lastError: Option[Error], expiredAt: Option[Int], cancelledAt: Option[Int], failedAt: Option[Int], completedAt: Option[Int], metadata: Map[String, String], usage: Option[Usage])

Represents a step in execution of a run

Value parameters

assistantId

The ID of the assistant associated with the run step.

cancelledAt

The Unix timestamp (in seconds) for when the run step was cancelled.

completedAt

The Unix timestamp (in seconds) for when the run step completed.

createdAt

The Unix timestamp (in seconds) for when the run step was created.

expiredAt

The Unix timestamp (in seconds) for when the run step expired. A step is considered expired if the parent run is expired.

failedAt

The Unix timestamp (in seconds) for when the run step failed.

id

The identifier of the run step, which can be referenced in API endpoints.

lastError

The last error associated with this run step. Will be null if there are no errors.

metadata

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 maxium of 512 characters long.

object

The object type, which is always thread.run.step.

runId

The ID of the run that this run step is a part of.

status

The status of the run step, which can be either in_progress, cancelled, failed, completed, or expired.

stepDetails

The details of the run step.

threadId

The ID of the thread that was run.

type

The type of run step, which can be either message_creation or tool_calls.

usage

Usage statistics related to the run step. This value will be null while the run step's status is in_progress.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product