BackgroundTasksConfig
Defined in: src/background-tasks/types.ts:6
Configures background tool execution.
Properties
Section titled “Properties”waitForCompletion?
Section titled “waitForCompletion?”readonly waitForCompletion?: boolean;Defined in: src/background-tasks/types.ts:8
Wait for background work before an invocation returns. Defaults to true.
agentic?
Section titled “agentic?”readonly agentic?: readonly (string | Tool)[];Defined in: src/background-tasks/types.ts:10
Tools or registered tool names whose execution mode is selected by the model. Defaults to ['*'].
always?
Section titled “always?”readonly always?: readonly (string | Tool)[];Defined in: src/background-tasks/types.ts:12
Tools or registered tool names that always execute in the background.
never?
Section titled “never?”readonly never?: readonly (string | Tool)[];Defined in: src/background-tasks/types.ts:14
Tools or registered tool names that never execute in the background.
maxConcurrency?
Section titled “maxConcurrency?”readonly maxConcurrency?: number;Defined in: src/background-tasks/types.ts:16
Maximum number of physically executing background tasks. Defaults to 4.
timeout?
Section titled “timeout?”readonly timeout?: number;Defined in: src/background-tasks/types.ts:18
Per-execution timeout in milliseconds. Defaults to Infinity.