Skip to content

ToolLoopGuardOptions

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/GthLangChainAgent.ts:136

EXT-36 — resolved knobs for createToolLoopGuardMiddleware.

optional halt?: boolean

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/GthLangChainAgent.ts:140

End the run via jumpTo:'end' at threshold (opt-in, active loop-breaking). Default OFF.


optional threshold?: number

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/GthLangChainAgent.ts:142

Consecutive identical-signature repeats that trip the guard. Default DEFAULT_TOOL_LOOP_THRESHOLD.


optional warn?: boolean

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/GthLangChainAgent.ts:138

Surface a user-visible notice at threshold (NO model-input mutation). Default ON.