Function: noToolCalls()
noToolCalls():
StopCondition
Defined in: packages/core/src/utils/stop-conditions.ts:140
Stop when the model doesn't call any tools
This is useful when you want to let the model run until it decides it has enough information to respond without tools.
Returns
StopCondition that triggers when no tools are called
Example
const bot = new Baleybot({
stopWhen: combine(
stepCountIs(50), // Safety limit
noToolCalls() // Or stop naturally
),
});