Skip to content
providerkit
GitHub

createBackgroundAgent

function createBackgroundAgent<T>(options): ReturnType<typeof bindBackground>;

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

Background work uses the host’s lease, queue and cancellation. Children stay in-process. Usage remains in stable SDK receipts; this binding never calls additive Run.spend.

Type Parameter
T
Parameter Type
options BackgroundOptions<T>

ReturnType<typeof bindBackground>

function createBackgroundAgent<T>(options): ReturnType<typeof bindBackground>;

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

Background work uses the host’s lease, queue and cancellation. Children stay in-process. Usage remains in stable SDK receipts; this binding never calls additive Run.spend.

Type Parameter
T
Parameter Type
options BackgroundRemoteOptions<T>

ReturnType<typeof bindBackground>

function createBackgroundAgent<I, O>(options): ReturnType<typeof bindBackground>;

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

Background work uses the host’s lease, queue and cancellation. Children stay in-process. Usage remains in stable SDK receipts; this binding never calls additive Run.spend.

Type Parameter
I
O
Parameter Type
options BackgroundWorkflowOptions<I, O>

ReturnType<typeof bindBackground>