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
Pythonlanggraph_internal_configpatch_config
Function●Since v0.6

patch_config

Patch a config with new values.

Copy
patch_config(
  config: RunnableConfig | None,
  *,
  callbacks: Callbacks = None,
  recursion_limit: int | None = None,
  max_concurrency: int | None = None,
  run_name: str | None = None,
  configurable: dict[str, Any] | None = None
) -> RunnableConfig

Parameters

NameTypeDescription
config*RunnableConfig | None

The config to patch.

callbacksCallbacks
Default:None

The callbacks to set.

recursion_limitint | None
Default:None

The recursion limit to set.

max_concurrencyint | None
Default:None

The max number of concurrent steps to run, which also applies to parallelized steps.

run_namestr | None
Default:None

The run name to set.

configurabledict[str, Any] | None
Default:None

The configurable to set.

View source on GitHub