LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
LangGraph
  • Web
  • Channels
  • Pregel
  • Prebuilt
  • Remote
  • Stream
LangGraph SDK
  • Ui
  • Client
  • Auth
  • React
  • Logging
  • React Ui
  • Utils
  • Server
  • Stream
LangGraph Checkpoint
LangGraph Checkpoint MongoDB
LangGraph Checkpoint Postgres
  • Store
LangGraph Checkpoint Redis
  • Shallow
  • Store
LangGraph Checkpoint SQLite
LangGraph Checkpoint Validation
  • Cli
LangGraph API
LangGraph CLI
LangGraph CUA
  • Utils
LangGraph Supervisor
LangGraph Swarm
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

LangGraph
WebChannelsPregelPrebuiltRemoteStream
LangGraph SDK
UiClientAuthReactLoggingReact UiUtilsServerStream
LangGraph Checkpoint
LangGraph Checkpoint MongoDB
LangGraph Checkpoint Postgres
Store
LangGraph Checkpoint Redis
ShallowStore
LangGraph Checkpoint SQLite
LangGraph Checkpoint Validation
Cli
LangGraph API
LangGraph CLI
LangGraph CUA
Utils
LangGraph Supervisor
LangGraph Swarm
Language
Theme
JavaScript@langchain/langgraphchannelschannelsFromCheckpoint
Functionā—Since v0.3

channelsFromCheckpoint

Hydrate channels from a checkpoint, reconstructing any DeltaChannel whose value is absent from channel_values by replaying ancestor writes.

For most channels (and for delta channels with a DeltaSnapshot or a migrated plain value in channel_values), emptyChannels is sufficient and no saver access is required. When a delta channel is absent from channel_values, an ancestor walk via saver.getDeltaChannelHistory finds the nearest seed and accumulates the writes between it and the target. All delta channels needing replay are batched into a single saver call.

Copy
channelsFromCheckpoint<
  Cc extends Record<string, BaseChannel<unknown, unknown, unknown>>
>(specs: Cc, checkpoint: ReadonlyCheckpoint, options: __type): Promise<Cc>

Parameters

NameTypeDescription
specs*Cc
checkpoint*ReadonlyCheckpoint
options__type
View source on GitHub