LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • LangGraph Checkpoint
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    LangGraph Checkpoint
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraph.checkpointbaseCheckpoint
    Class●Since v1.0

    Checkpoint

    State snapshot at a given point in time.

    Copy
    Checkpoint()

    Bases

    TypedDict

    Constructors

    constructor
    __init__
    NameType
    vint
    idstr
    tsstr
    channel_valuesdict[str, Any]
    channel_versionsChannelVersions
    versions_seendict[str, ChannelVersions]
    updated_channelslist[str] | None

    Attributes

    attribute
    v: int

    The version of the checkpoint format. Currently 1.

    attribute
    id: str

    The ID of the checkpoint.

    This is both unique and monotonically increasing, so can be used for sorting checkpoints from first to last.

    attribute
    ts: str

    The timestamp of the checkpoint in ISO 8601 format.

    attribute
    channel_values: dict[str, Any]

    The values of the channels at the time of the checkpoint.

    Mapping from channel name to deserialized channel snapshot value.

    attribute
    channel_versions: ChannelVersions

    The versions of the channels at the time of the checkpoint.

    The keys are channel names and the values are monotonically increasing version strings for each channel.

    attribute
    versions_seen: dict[str, ChannelVersions]

    Map from node ID to map from channel name to version seen.

    This keeps track of the versions of the channels that each node has seen. Used to determine which nodes to execute next.

    attribute
    updated_channels: list[str] | None

    The channels that were updated in this checkpoint.

    View source on GitHub