Skip to content

BackgroundTasksConfig

Defined in: src/background-tasks/types.ts:6

Configures background tool execution.

readonly manageToolName?: string;

Defined in: src/background-tasks/types.ts:12

Name of the tool the model calls to list, get, or cancel background tasks. Must not match another tool on the agent. The name is written into conversation history, so keep it stable across a saved session. Defaults to strands_manage_background_task.


readonly waitForCompletion?: boolean;

Defined in: src/background-tasks/types.ts:14

Wait for background work before an invocation returns. Defaults to true.


readonly agentic?: readonly (string | Tool)[];

Defined in: src/background-tasks/types.ts:16

Tools or registered tool names whose execution mode is selected by the model. Defaults to ['*'].


readonly always?: readonly (string | Tool)[];

Defined in: src/background-tasks/types.ts:18

Tools or registered tool names that always execute in the background.


readonly never?: readonly (string | Tool)[];

Defined in: src/background-tasks/types.ts:20

Tools or registered tool names that never execute in the background.


readonly maxConcurrency?: number;

Defined in: src/background-tasks/types.ts:22

Maximum number of physically executing background tasks. Defaults to 4.


readonly timeout?: number;

Defined in: src/background-tasks/types.ts:24

Per-execution timeout in milliseconds. Defaults to Infinity.