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

Chat LangChain

What can I help with?

Enter to send·Shift+Enter new line

Menu

LangGraph
WebChannelsPregelPrebuiltRemoteStream
LangGraph SDK
ClientAuthReactLoggingReact UiServer
LangGraph Checkpoint
LangGraph Checkpoint MongoDB
LangGraph Checkpoint Postgres
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/langgraphindexMemorySaverputWrites
Method●Since v1.5

putWrites

Store intermediate writes linked to a checkpoint.

taskPath is the serialized path of the task creating the writes (see writesSortKey). Implementations should persist it when they can, and must return pendingWrites from getTuple/list in writesSortKey order — live execution applies a superstep's writes in that order, so replaying in any other order can rebuild a different value for an order-sensitive reducer. Writes stored without a path (rows predating it, savers that don't persist one) sort first by taskId, which is also the order live execution applies input in.

Copy
putWrites(
  config: RunnableConfig,
  writes: PendingWrite[],
  taskId: string,
  taskPath: string
): Promise<void>

Parameters

NameTypeDescription
config*RunnableConfig
writes*PendingWrite[]
taskId*string
taskPathstring
View source on GitHub