MAX_CONSECUTIVE_TOOL_ERRORS
constMAX_CONSECUTIVE_TOOL_ERRORS:5=5
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/GthLangChainAgent.ts:48
GS2-36 — default cap for the tool-error retry budget: how many status:‘error’ tool results may accrue back-to-back (no successful tool result in between) before the run is ended gracefully. Small on purpose: it still lets the model try a couple of genuine recovery variants (the whole point of feeding errors back — GS2-32 showed the model routes around a surfaced error in 1–2 tries) while stopping a runaway self-inflicted loop long before createAgent’s coarse recursionLimit backstop would.