resolveToolLoopGuardOptions
resolveToolLoopGuardOptions(
setting):ToolLoopGuardOptions
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/GthLangChainAgent.ts:154
EXT-36 — normalise the toolLoopGuard config union (false | true | { warn?, halt?, threshold? })
into concrete ToolLoopGuardOptions, applying the WARN-ON-by-default policy at the read site
(mirrors how debugDump.redact defaults with !== false, NOT in DEFAULT_CONFIG, so the
effective-config snapshot never churns).
false→ both modes off (a no-op guard);true/ absent → warn on, halt off, default threshold;- object → per-field, with warn defaulting ON and halt defaulting OFF.
Parameters
Section titled “Parameters”setting
Section titled “setting”boolean | ToolLoopGuardOptions | null | undefined