Optionalconfig: ClientConfigProtectedapiProtectedasyncProtecteddefaultProtected OptionalonProtectedtimeoutThe ID of the thread.
The ID of the run.
Whether to block when canceling
Action to take when cancelling the run. Possible values are interrupt or rollback. Default is interrupt.
Create a run.
The ID of the thread.
Assistant ID to use for this run.
Optionalpayload: RunsCreatePayloadPayload for creating a run.
The created run.
Create a batch of stateless background runs.
An array of payloads for creating runs.
An array of created runs.
Delete a run.
The ID of the thread.
The ID of the run.
ProtectedfetchOptionaloptions: RequestInit & {Get a run by ID.
The ID of the thread.
The ID of the run.
The run.
Block until a run is done.
The ID of the thread.
The ID of the run.
Optionaloptions: { signal?: AbortSignal }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.
Optionaloptions: Additional options for controlling the stream behavior:
An async generator yielding stream parts.
List all runs for a thread.
The ID of the thread.
Optionaloptions: {Filtering and pagination options.
Optionallimit?: numberMaximum number of runs to return. Defaults to 10
Optionaloffset?: numberOffset to start from. Defaults to 0.
Optionalselect?: RunSelectField[]Optionalstatus?: RunStatusStatus of the run to filter by.
List of runs.
ProtectedprepareOptionaloptions: RequestInit & {Optionalpayload: Omit<Optionalpayload: RunsStreamPayload<TStreamMode, TSubgraphs>Optionalpayload: Omit<RunsWaitPayload, "multitaskStrategy" | "onCompletion">Optionalpayload: RunsWaitPayload
Cancel a run.