BackgroundTasksConfig
Defined in: src/background-tasks/types.ts:6
Configures background tool execution.
Properties
Section titled “Properties”manageToolName?
Section titled “manageToolName?”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.
waitForCompletion?
Section titled “waitForCompletion?”readonly waitForCompletion?: boolean;Defined in: src/background-tasks/types.ts:14
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:16
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:18
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:20
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:22
Maximum number of physically executing background tasks. Defaults to 4.
timeout?
Section titled “timeout?”readonly timeout?: number;Defined in: src/background-tasks/types.ts:24
Per-execution timeout in milliseconds. Defaults to Infinity.