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.checkpoint.sqlite_deltabuild_delta_channels_writes_history
    Function●Since v3.0

    build_delta_channels_writes_history

    Demux stage-2 rows per channel; produce per-channel histories.

    Stage-2 rows are (checkpoint_id, channel, task_id, idx, type, value). Final write order is oldest→newest globally and (task_id, idx) within a checkpoint, matching the contract on DeltaChannelHistory.writes.

    seed is omitted when the walk reached a true root with no snapshot found (channel never entered seeded); consumers treat absence as "start empty".

    Copy
    build_delta_channels_writes_history(
      *,
      channels: Sequence[str],
      chain_by_ch: Mapping[str, list[str]],
      seed_val_by_ch: Mapping[str, Any],
      seeded: set[str],
      stage2_rows: Sequence[tuple[str, str, str, int, str, bytes]],
      serde: Any
    ) -> dict[str, DeltaChannelHistory]
    View source on GitHub