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
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
check | readonly | (state) => boolean | Returns true when the run should stop on this state. | packages/core/src/types/stop-condition.ts:18 |
description | readonly | string | Human-friendly label included in observability spans. | packages/core/src/types/stop-condition.ts:16 |