runSteps

abstract suspend fun runSteps(threadId: ThreadId, runId: RunId, limit: Int? = null, order: SortOrder? = null, after: RunStepId? = null, before: RunStepId? = null, requestOptions: RequestOptions? = null): List<RunStep>

Retrieves a run step.

Parameters

threadId

the ID of the thread to which the run and run step belongs

runId

the ID of the run to which the run step belongs

limit

A limit on the number of objects to be returned. The Limit can range between 1 and 100, and the default is 20.

order

sort order by the created_at timestamp of the objects.

after

a cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after = RunId("obj_foo") in order to fetch the next page of the list.

before

a cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before = RunId("obj_foo") in order to fetch the previous page of the list.

requestOptions

request options.