cancel
abstract suspend fun cancel(threadId: ThreadId, runId: RunId, requestOptions: RequestOptions? = null): Run
Cancels a run that is Status.InProgress.
Parameters
thread Id
the ID of the thread to which this run belongs
run Id
the ID of the run to cancel
request Options
request options.