naylence-agent-sdk-ts / BackgroundTaskAgentOptions
Interface: BackgroundTaskAgentOptions<StateT>
Defined in: src/naylence/agent/background-task-agent.ts:167
Configuration options for BackgroundTaskAgent.
Extends
BaseAgentOptions<StateT>
Type Parameters
| Type Parameter |
|---|
StateT extends BaseAgentState |
Properties
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
completedCacheSize? | number | Maximum number of completed tasks to cache. Defaults to 100. | - | src/naylence/agent/background-task-agent.ts:177 |
completedCacheTtlSec? | number | Time-to-live for cached completed tasks in seconds. Defaults to 300. | - | src/naylence/agent/background-task-agent.ts:179 |
maxQueueSize? | number | Maximum number of events buffered per task. Defaults to 1000. | - | src/naylence/agent/background-task-agent.ts:170 |
maxTaskLifetimeMs? | number | null | Maximum task execution time in milliseconds. Tasks exceeding this limit are automatically canceled. Null disables the limit. | - | src/naylence/agent/background-task-agent.ts:175 |
stateFactory? | () => StateT | null | Factory function to create initial state. | BaseAgentOptions.stateFactory | src/naylence/agent/base-agent.ts:341 |
stateKey? | string | Key under which state is stored. Defaults to ‘state’. | BaseAgentOptions.stateKey | src/naylence/agent/base-agent.ts:339 |
stateModel? | StateModelCtor<StateT> | null | State model class for typed state management. | BaseAgentOptions.stateModel | src/naylence/agent/base-agent.ts:335 |
stateNamespace? | string | null | Namespace for state storage. Defaults to agent name. | BaseAgentOptions.stateNamespace | src/naylence/agent/base-agent.ts:337 |
storageProvider? | StorageProvider | null | Custom storage provider for state persistence. | BaseAgentOptions.storageProvider | src/naylence/agent/base-agent.ts:343 |
Last updated on