decisionState
Display only: reads the pending decision and how far it has got from a session snapshot. Absent when nothing is waiting. The same decision in the same phase returns the same reference.
ready does not look at the clock. An interrupt with an expiresAt in the
past still reads ready, and resume then rejects it.
import { decisionState } from '@threadplane/ag-ui';Declaration · overload 1
export declare function decisionState(snapshot: {
readonly decision?: Decision;
readonly run?: DecisionRun;
}): DecisionState | undefined;Parameters
snapshot· required{ readonly decision?: Decision; readonly run?: DecisionRun; }
Returns
DecisionState | undefined