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
    LangGraph Store
    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
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraphpregel_checkpointchannels_from_checkpoint
    Functionā—Since v0.6

    channels_from_checkpoint

    Copy
    channels_from_checkpoint(
      specs: Mapping[str, BaseChannel | ManagedValueSpec],
      checkpoint: Checkpoint,
      
    View source on GitHub
    *
    ,
    saver
    :
    BaseCheckpointSaver
    |
    None
    =
    None
    ,
    config
    :
    RunnableConfig
    |
    None
    =
    None
    )
    ->
    tuple
    [
    Mapping
    [
    str
    ,
    BaseChannel
    ]
    ,
    ManagedValueMapping
    ]

    Hydrate channels from a checkpoint.

    For most channels, spec.from_checkpoint(checkpoint["channel_values"][k]) is sufficient. DeltaChannel is the exception: when the channel is absent from channel_values, an ancestor walk via saver.get_delta_channel_history is required to find the nearest seed (_DeltaSnapshot blob or pre-migration plain value) and accumulate the writes between it and the target. All delta channels needing replay are batched into a single saver call.