Graphorin API reference v0.15.1
Graphorin API reference / @graphorin/core / / StopCondition
Interface: StopCondition
Defined in: packages/core/src/types/stop-condition.ts:14
Stable
Predicate consulted by the agent runtime after every step to decide whether the loop should stop.
Stop conditions are pure - they look at the current RunState and return a boolean. The runtime never re-orders or short-circuits the order in which operands of and / or are evaluated, so users can rely on the obvious left-to-right semantics.