Type Alias: ApplyActionResponse
@kortexya/reasoninglayer / ApplyActionResponse
Type Alias: ApplyActionResponse
Section titled “Type Alias: ApplyActionResponse”ApplyActionResponse = {
outcome:"applied";sideEffectsDispatched:number;sideEffectsFailed:number; } | {missing:string[];outcome:"suspended"; } | {outcome:"rejected";reason:string; } | {outcome:"rolled_back";reason:string; }
Defined in: src/types/actions.ts:161
Outcome of applying an action.
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ outcome: "applied"; sideEffectsDispatched: number; sideEffectsFailed: number; }
outcome
Section titled “outcome”outcome:
"applied"
The action applied successfully.
sideEffectsDispatched
Section titled “sideEffectsDispatched”sideEffectsDispatched:
number
Number of side-effects delivered successfully.
sideEffectsFailed
Section titled “sideEffectsFailed”sideEffectsFailed:
number
Number of side-effects whose delivery failed (apply still succeeded).
Type Literal
Section titled “Type Literal”{ missing: string[]; outcome: "suspended"; }
missing
Section titled “missing”missing:
string[]
Names of the unbound required parameters.
outcome
Section titled “outcome”outcome:
"suspended"
The action is waiting for required inputs to be bound.
Type Literal
Section titled “Type Literal”{ outcome: "rejected"; reason: string; }
outcome
Section titled “outcome”outcome:
"rejected"
The action was rejected before applying.
reason
Section titled “reason”reason:
string
Human-readable reason.
Type Literal
Section titled “Type Literal”{ outcome: "rolled_back"; reason: string; }
outcome
Section titled “outcome”outcome:
"rolled_back"
The action applied then rolled back.
reason
Section titled “reason”reason:
string
Human-readable cause.
Remarks
Section titled “Remarks”Tagged discriminated union with outcome as the discriminant. The wire
shape (ApplyActionResponse) uses the same discriminant with snake_case
fields (side_effects_dispatched, side_effects_failed).