cancel

abstract suspend fun cancel(threadId: ThreadId, runId: RunId, requestOptions: RequestOptions? = null): Run

Cancels a run that is Status.InProgress.

Parameters

threadId

the ID of the thread to which this run belongs

runId

the ID of the run to cancel

requestOptions

request options.