Interface: ToolLoopDetectorConfig
Defined in: .source/wunderland/src/security/ToolLoopDetector.ts:17
Configuration for the tool loop detector.
Properties
baseDelayMs?
optionalbaseDelayMs?:number
Defined in: .source/wunderland/src/security/ToolLoopDetector.ts:35
Base delay for exponential backoff in milliseconds. Default: 2_000 (2 seconds)
enabled?
optionalenabled?:boolean
Defined in: .source/wunderland/src/security/ToolLoopDetector.ts:54
Whether to enable the detector. Default: true
maxDelayMs?
optionalmaxDelayMs?:number
Defined in: .source/wunderland/src/security/ToolLoopDetector.ts:41
Maximum backoff delay in milliseconds. Default: 60_000 (1 minute)
maxRepeatedCalls?
optionalmaxRepeatedCalls?:number
Defined in: .source/wunderland/src/security/ToolLoopDetector.ts:22
Maximum number of identical tool calls before triggering loop detection. Default: 3
maxTotalCallsPerSession?
optionalmaxTotalCallsPerSession?: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?
optionalwindowMs?: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)