Skip to content
providerkit
GitHub

BackgroundRun

Defined in: agents/src/runs.ts:132

Server-side: the snapshot holds the whole conversation, prompts and tool data. Send a browser a projection, never this object.

Type Parameter Default type
T -
R extends NodeOutcome<T> RunOutcome<T>
error: RunError | null;

Defined in: agents/src/runs.ts:141


id: string;

Defined in: agents/src/runs.ts:133


outcome: R | null;

Defined in: agents/src/runs.ts:138

outcome.session says whether the worker’s append saved the turn.


snapshot: R["snapshot"];

Defined in: agents/src/runs.ts:136


status: RunStatus;

Defined in: agents/src/runs.ts:135

Host completion is not SDK completion: a successful segment can be suspended or failed.


optional wakeAt?: number;

Defined in: agents/src/runs.ts:140

Earliest pending wake in the tree. The host schedules continuation.