langchain.js
    Preparing search index...

    Type Alias CheckpointMetadata<ExtraProperties>

    CheckpointMetadata: {
        parents: Record<string, string>;
        source: "input" | "loop" | "update" | "fork";
        step: number;
    } & ExtraProperties

    Additional details about the checkpoint, including the source, step, writes, and parents.

    Type Parameters

    • ExtraProperties extends object = object

      Optional additional properties to include in the metadata.

    Type Declaration

    • parents: Record<string, string>

      The IDs of the parent checkpoints. Mapping from checkpoint namespace to checkpoint ID.

    • source: "input" | "loop" | "update" | "fork"

      The source of the checkpoint.

      • "input": The checkpoint was created from an input to invoke/stream/batch.
      • "loop": The checkpoint was created from inside the pregel loop.
      • "update": The checkpoint was created from a manual state update.
      • "fork": The checkpoint was created as a copy of another checkpoint.
    • step: number

      The step number of the checkpoint. -1 for the first "input" checkpoint. 0 for the first "loop" checkpoint. ... for the nth checkpoint afterwards.