The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
Fix issue
Nuno Camposf95bd0bcd9b3
diff --git a/libs/langchain/langchain/schema/runnable/config.py b/libs/langchain/langchain/schema/runnable/config.pyindex c7befd5414..f12f1f83f3 100644--- a/libs/langchain/langchain/schema/runnable/config.py+++ b/libs/langchain/langchain/schema/runnable/config.py@@ -107,7 +107,11 @@ def patch_config(if deep_copy_locals:config["_locals"] = deepcopy(config["_locals"])if callbacks is not None:+ # If we're replacing callbacks we need to unset run_name and run_id+ # As those should apply only to the same run as the original callbacksconfig["callbacks"] = callbacks+ config["run_name"] = None+ config["run_id"] = Noneif recursion_limit is not None:config["recursion_limit"] = recursion_limitreturn config