API Reference
not
function not(condition): StopCondition;Defined in: stop/conditions.ts:120
Invert a condition.
Parameters
| Parameter | Type | Description |
|---|---|---|
condition | StopCondition | The condition to negate. |
Returns
A StopCondition that fires exactly when condition does not.
Example
// Continue (do not stop) until the tool has been called.
const keepGoing = not(whenToolCalled("submit_answer"));