LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
    • Overview
    • Graphs
    • Functional API
    • Pregel
    • Checkpointing
    • Storage
    • Caching
    • Types
    • Runtime
    • Config
    • Errors
    • Constants
    • Channels
    • Agents
    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

    OverviewGraphsFunctional APIPregelCheckpointingStorageCachingTypesRuntimeConfigErrorsConstantsChannelsAgents
    LangGraph Checkpoint
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraphpregel_checkpointdelta_channels_to_snapshot
    Function●Since v1.1

    delta_channels_to_snapshot

    Copy
    delta_channels_to_snapshot(
      channels: Mapping[str, BaseChannel],
      counters_since_delta_snapshot: Mapping[str, 
    View source on GitHub
    tuple
    [
    int
    ,
    int
    ]
    ]
    )
    ->
    set
    [
    str
    ]

    Return the set of DeltaChannel names that should snapshot now.

    A channel snapshots when EITHER its accumulated update count reaches snapshot_frequency OR the total supersteps since its last snapshot reaches DELTA_MAX_SUPERSTEPS_SINCE_SNAPSHOT. This is a pure predicate — no mutation.