LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Graphs
  • Functional API
  • Pregel
  • Checkpointing
  • Storage
  • Caching
  • Types
  • Runtime
  • Config
  • Errors
  • Constants
  • Channels
  • Agents
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 CLI
LangGraph SDK
LangGraph Supervisor
LangGraph Swarm
Language
Theme
PythonlanggraphpregelmainPregelabulk_update_state
Method●Since v0.6

abulk_update_state

Asynchronously apply updates to the graph state in bulk. Requires a checkpointer to be set.

Copy
abulk_update_state(
  self,
  config: RunnableConfig,
  supersteps: Sequence[Sequence[StateUpdate]]
) -> RunnableConfig

Parameters

NameTypeDescription
config*RunnableConfig

The config to apply the updates to.

supersteps*Sequence[Sequence[StateUpdate]]

A list of supersteps, each including a list of updates to apply sequentially to a graph state.

Each update is a tuple of the form (values, as_node, task_id) where task_id is optional.

View source on GitHub