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.checkpointbaseBaseCheckpointSaverget_delta_channel_history
    Method●Since v4.0

    get_delta_channel_history

    Walk the parent chain returning per-channel writes + seed.

    For each requested channel, walks ancestors of the checkpoint identified by config (following parent_config) and accumulates pending_writes for that channel. The walk terminates per-channel at the nearest ancestor whose channel_values[ch] is populated; that value is returned as seed. If the walk reaches the root without finding a stored value, seed is omitted from that channel's entry — the consumer treats the absence as "start empty."

    Walks the parent chain (not list(before=...)): for forked threads, only on-path ancestors contribute.

    The default implementation walks get_tuple + parent_config once for all channels — each ancestor visited once, not once per channel. Savers with direct storage access (InMemorySaver, PostgresSaver) override for performance; the return contract is fixed here.

    Copy
    get_delta_channel_history(
      self,
      *,
      config: RunnableConfig,
      channels: Sequence[str]
    ) -> Mapping[str, DeltaChannelHistory]

    Parameters

    NameTypeDescription
    config*RunnableConfig

    Configuration identifying the target checkpoint.

    channels*Sequence[str]

    Channel names to walk for. Empty → empty mapping.

    View source on GitHub