Skip to main content

Variable: DEFAULT_STOP_STEP_COUNT

const DEFAULT_STOP_STEP_COUNT: 50 = 50

Defined in: packages/core/src/utils/stop-conditions.ts:139

Default when BaleybotConfig.stopWhen is omitted. Prevents runaway loops while allowing multi-step tool use.

When this default fires, the stream emits done with reason: 'out_of_iterations' and iteration_count set — not a silent turn_yielded. Raise the cap explicitly with stopWhen: stepCountIs(n).