Skip to content

Interface: ChildForkExecutionOutcome<TOut> ​

Defined in: runtime/fork/child-fork-execution-outcome.ts:11

Outcome returned by a child step execution inside a downward .fork() or resumeFork batch.

Distinguishes normal completion (status: 'completed') from an upward interrupt raised to the parent (status: 'interrupt-raised').

Type Parameters ​

Type ParameterDefault typeDescription
TOutunknownValidated output payload type of the child executable.

Properties ​

PropertyModifierTypeDescriptionDefined in
accumulatedLessonOutcomes?readonlyReadonly<Record<string, LessonOutcome>>Deduplicated lesson outcomes accumulated during child execution.runtime/fork/child-fork-execution-outcome.ts:19
continuationStackreadonlyreadonly ContinuationFrame[]Serialized child continuation stack at the moment of suspension or completion.runtime/fork/child-fork-execution-outcome.ts:29
interruptId?readonlystringRaised interrupt identifier when status === 'interrupt-raised'.runtime/fork/child-fork-execution-outcome.ts:21
interruptPayload?readonlyunknownValidated interrupt payload when status === 'interrupt-raised'.runtime/fork/child-fork-execution-outcome.ts:23
leafMessageId?readonlystring | nullFinal leaf message ID of the child transcript.runtime/fork/child-fork-execution-outcome.ts:17
output?readonlyTOutValidated output payload when status === 'completed'.runtime/fork/child-fork-execution-outcome.ts:15
raisedByPhase?readonly"act" | "evaluate"Phase that raised the interrupt ('act' vs 'evaluate').runtime/fork/child-fork-execution-outcome.ts:25
statusreadonly"completed" | "interrupt-raised"Discriminant indicating whether the child completed or raised an upward interrupt.runtime/fork/child-fork-execution-outcome.ts:13
suspendedAtCallId?readonlystringTool call ID that raised the interrupt when raised from an .act() tool call.runtime/fork/child-fork-execution-outcome.ts:27

Released under the MIT License.