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) +