From 4e2fb9cbaab05c398dd6f9c4326908182bc1c1d8 Mon Sep 17 00:00:00 2001 From: "open-swe[bot]" Date: Wed, 13 Aug 2025 15:12:48 +0000 Subject: [PATCH] Apply patch [skip ci] --- libs/core/langchain_core/runnables/config.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libs/core/langchain_core/runnables/config.py b/libs/core/langchain_core/runnables/config.py index 62396946a1f..6b0b4720194 100644 --- a/libs/core/langchain_core/runnables/config.py +++ b/libs/core/langchain_core/runnables/config.py @@ -90,6 +90,13 @@ class RunnableConfig(TypedDict, total=False): will be generated. """ + inherit_run_name: bool + """ + Whether to inherit the run_name to child runs. Defaults to False for backward + compatibility. When set to True, the run_name will be preserved when creating + child runs, allowing dynamic run names to propagate through the entire chain. + """ + CONFIG_KEYS = [ "tags", @@ -630,3 +637,4 @@ async def run_in_executor( return await asyncio.get_running_loop().run_in_executor(executor_or_config, wrapper) +