langchain_core.runnables.config
.patch_configΒΆ
- langchain_core.runnables.config.patch_config(config: Optional[RunnableConfig], *, callbacks: Optional[BaseCallbackManager] = None, recursion_limit: Optional[int] = None, max_concurrency: Optional[int] = None, run_name: Optional[str] = None, configurable: Optional[Dict[str, Any]] = None) RunnableConfig [source]ΒΆ
Patch a config with new values.
- Parameters
config (Optional[RunnableConfig]) β The config to patch.
copy_locals (bool, optional) β Whether to copy locals. Defaults to False.
callbacks (Optional[BaseCallbackManager], optional) β The callbacks to set. Defaults to None.
recursion_limit (Optional[int], optional) β The recursion limit to set. Defaults to None.
max_concurrency (Optional[int], optional) β The max concurrency to set. Defaults to None.
run_name (Optional[str], optional) β The run name to set. Defaults to None.
configurable (Optional[Dict[str, Any]], optional) β The configurable to set. Defaults to None.
- Returns
The patched config.
- Return type