createBackgroundAgent
Call Signature
Section titled “Call Signature”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 Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options |
BackgroundOptions<T> |
Returns
Section titled “Returns”ReturnType<typeof bindBackground>
Call Signature
Section titled “Call Signature”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 Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options |
BackgroundRemoteOptions<T> |
Returns
Section titled “Returns”ReturnType<typeof bindBackground>
Call Signature
Section titled “Call Signature”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 Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
I |
O |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options |
BackgroundWorkflowOptions<I, O> |
Returns
Section titled “Returns”ReturnType<typeof bindBackground>