Skip to main content

Type Alias: StopReason

StopReason = "error" | "skipped" | "retry-exhausted" | "budget-exhausted" | "incompatible-definition" | "unauthorized" | "credits-exhausted" | "contract-unmet"

Defined in: packages/core/src/core/run-contract.ts:18

Why a run settled as failed. A closed set, so a host settles from the outcome without parsing messages. cancelled is a status, not a reason, and the suspensions (ambiguous-effect, unresolved-effect) are interrupted reasons.