Skip to content

sandboxCheckpointSchema

const sandboxCheckpointSchema: ZodObject<{
callLog: ZodArray<ZodNullable<ZodUnion<readonly [ZodObject<{
input: ZodUnknown;
name: ZodString;
response: ZodUnknown;
type: ZodLiteral<"action">;
}, $strip>, ZodObject<{
response: ZodNumber;
type: ZodLiteral<"random">;
}, $strip>, ZodObject<{
response: ZodNumber;
type: ZodLiteral<"now">;
}, $strip>]>>>;
interruptState: ZodOptional<ZodUnknown>;
position: ZodNumber;
}, $strip>;

Defined in: tool/tool.ts:32

The tool’s private checkpoint, carried on the interrupt and handed back on resumption: everything Sandbox.eval needs to replay up to the interrupted call. Parsed on the way back in because it round-trips through persistence.