Skip to main content

Function: allConditions()

allConditions(...conditions): StopCondition

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

Combine multiple stop conditions with AND logic

Stops only when ALL of the provided conditions are met.

Parameters

conditions

...StopCondition[]

Stop conditions to combine

Returns

StopCondition

StopCondition that triggers when all conditions are met

Example

const bot = new Baleybot({
stopWhen: all(
stepCountIs(5),
hasToolResult('verify')
),
});