Function: combineConditions()
combineConditions(...
conditions):StopCondition
Defined in: packages/core/src/utils/stop-conditions.ts:182
Combine multiple stop conditions with OR logic
Stops when ANY of the provided conditions is met.
Parameters
conditions
...StopCondition[]
Stop conditions to combine
Returns
StopCondition that triggers when any condition is met
Example
const bot = new Baleybot({
stopWhen: combine(
stepCountIs(10),
hasToolResult('done'),
noToolCalls()
),
});