Function: totalToolCallsExceed()
totalToolCallsExceed(
n):StopCondition
Defined in: packages/core/src/utils/stop-conditions.ts:159
Stop when the total number of tool calls exceeds a threshold
Parameters
n
number
Maximum total tool calls
Returns
StopCondition that triggers when total exceeds n
Example
const bot = new Baleybot({
stopWhen: totalToolCallsExceed(50), // Stop after 50 total tool calls
});