LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
    • Overview
    • Caches
    • Callbacks
    • Documents
    • Document loaders
    • Embeddings
    • Exceptions
    • Language models
    • Serialization
    • Output parsers
    • Prompts
    • Rate limiters
    • Retrievers
    • Runnables
    • Utilities
    • Vector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    OverviewCachesCallbacksDocumentsDocument loadersEmbeddingsExceptionsLanguage modelsSerializationOutput parsersPromptsRate limitersRetrieversRunnablesUtilitiesVector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    Language
    Theme
    Pythonlangchain-corerunnablesconfigpatch_config
    Function●Since v0.1

    patch_config

    Patch a config with new values.

    Copy
    patch_config(
      config: RunnableConfig | None,
      *,
      callbacks: BaseCallbackManager | None = 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.

    callbacksBaseCallbackManager | None
    Default:None

    The callbacks to set.

    recursion_limitint | None
    Default:None

    The recursion limit to set.

    max_concurrencyint | None
    Default:None

    The max concurrency to set.

    run_namestr | None
    Default:None

    The run name to set.

    configurabledict[str, Any] | None
    Default:None

    The configurable to set.

    View source on GitHub