Skip to main content

Interface: ToolLoopDetectorConfig

Defined in: .source/wunderland/src/security/ToolLoopDetector.ts:17

Configuration for the tool loop detector.

Properties

baseDelayMs?

optional baseDelayMs?: number

Defined in: .source/wunderland/src/security/ToolLoopDetector.ts:35

Base delay for exponential backoff in milliseconds. Default: 2_000 (2 seconds)


enabled?

optional enabled?: boolean

Defined in: .source/wunderland/src/security/ToolLoopDetector.ts:54

Whether to enable the detector. Default: true


maxDelayMs?

optional maxDelayMs?: number

Defined in: .source/wunderland/src/security/ToolLoopDetector.ts:41

Maximum backoff delay in milliseconds. Default: 60_000 (1 minute)


maxRepeatedCalls?

optional maxRepeatedCalls?: number

Defined in: .source/wunderland/src/security/ToolLoopDetector.ts:22

Maximum number of identical tool calls before triggering loop detection. Default: 3


maxTotalCallsPerSession?

optional maxTotalCallsPerSession?: number

Defined in: .source/wunderland/src/security/ToolLoopDetector.ts:48

Maximum total calls (any tool) in a session before hard stopping. Prevents runaway agents. Default: 200


windowMs?

optional windowMs?: number

Defined in: .source/wunderland/src/security/ToolLoopDetector.ts:29

Time window in milliseconds to track repeated calls. Calls older than this are forgotten. Default: 60_000 (1 minute)