Skip to content

promptInterruptResolutionSchema

const promptInterruptResolutionSchema: ZodObject<{
data: ZodOptional<ZodUnknown>;
error: ZodOptional<ZodUnknown>;
timestamp: ZodISODateTime;
type: ZodEnum<{
reject: "reject";
resume: "resume";
}>;
}, $strip>;

Defined in: core/src/prompt/prompt.ts:28

How an interrupt was answered. Recorded on the interrupt entry the moment the caller decides — before any re-execution — so the decision stays in the transcript even if the resumed run fails or interrupts again.