Optional
config: ClientConfigProtected
apiProtected
asyncProtected
defaultProtected
Optional
onProtected
timeoutThe ID of the thread.
The ID of the run.
Optional
wait: booleanWhether to block when canceling
Optional
action: CancelActionAction to take when cancelling the run. Possible values are interrupt
or rollback
. Default is interrupt
.
Protected
fetchOptional
options: RequestInit & { Stream output from a run in real-time, until the run is done.
The ID of the thread. Can be set to null
| undefined
for stateless runs.
The ID of the run.
Optional
options: AbortSignal | { Additional options for controlling the stream behavior:
An async generator yielding stream parts.
List all runs for a thread.
The ID of the thread.
Optional
options: { Filtering and pagination options.
Optional
limit?: numberMaximum number of runs to return. Defaults to 10
Optional
offset?: numberOffset to start from. Defaults to 0.
Optional
status?: RunStatusStatus of the run to filter by.
List of runs.
Protected
prepareOptional
payload: Omit<RunsStreamPayload<TStreamMode, TSubgraphs>, "multitaskStrategy" | "onCompletion">Optional
payload: RunsStreamPayload<TStreamMode, TSubgraphs>Optional
payload: Omit<RunsWaitPayload, "multitaskStrategy" | "onCompletion">Optional
payload: RunsWaitPayload
Cancel a run.