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

    Chat LangChain

    What can I help with?

    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 v1.8

    patch_config

    Copy
    patch_config(
      config: RunnableConfig | None,
      *,
      callbacks: BaseCallbackManager | None = None,
    View source on GitHub
    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
    run_namestr | None
    Default:None
    configurabledict[str, Any] | None
    Default:None

    Patch a config with new values.

    The max concurrency to set.

    The run name to set.

    The configurable to set.