Function: stepCountIs()
stepCountIs(
n):StopCondition
Defined in: packages/core/src/utils/stop-conditions.ts:72
Stop after a specific number of iterations
Parameters
n
number
Maximum number of iterations
Returns
StopCondition that triggers after n iterations
Example
const bot = new Baleybot({
stopWhen: stepCountIs(5), // Stop after 5 iterations
});