Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/core / / StopCondition

Interface: StopCondition

Defined in: packages/core/src/types/stop-condition.ts:14

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.

Stable

Properties

PropertyModifierTypeDescriptionDefined in
checkreadonly(state) => booleanReturns true when the run should stop on this state.packages/core/src/types/stop-condition.ts:18
descriptionreadonlystringHuman-friendly label included in observability spans.packages/core/src/types/stop-condition.ts:16