Cancel a run.
cancel(
threadId: string,
runId: string,
wait: boolean = false,
action: CancelAction = "interrupt",
options: __type = {}
): Promise<void>| Name | Type | Description |
|---|---|---|
threadId* | string | The ID of the thread. |
runId* | string | The ID of the run. |
wait | boolean | Default: falseWhether to block when canceling |
action | CancelAction | Default: "interrupt"Action to take when cancelling the run. Possible values are |
options | __type | Default: {} |