The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
core[patch]: Remove different parent run id warning (#25683)
William FH294f7fcb384c
diff --git a/libs/core/langchain_core/callbacks/base.py b/libs/core/langchain_core/callbacks/base.pyindex bd817ef097..819b3d0731 100644--- a/libs/core/langchain_core/callbacks/base.py+++ b/libs/core/langchain_core/callbacks/base.py@@ -953,11 +953,6 @@ class BaseCallbackManager(CallbackManagerMixin):# ['tag2', 'tag1']""" # noqa: E501- if self.parent_run_id != other.parent_run_id:- _LOGGER.warning(- f"{self.__class__.__name__}.merge(): Parent run IDs do not match."- " Using the parent run ID of the first callback manager."- )manager = self.__class__(parent_run_id=self.parent_run_id or other.parent_run_id,handlers=[],diff --git a/libs/core/langchain_core/callbacks/manager.py b/libs/core/langchain_core/callbacks/manager.pyindex 77b963388c..ba42a274a9 100644--- a/libs/core/langchain_core/callbacks/manager.py+++ b/libs/core/langchain_core/callbacks/manager.py@@ -1658,11 +1658,6 @@ class CallbackManagerForChainGroup(CallbackManager):# ['tag2', 'tag1']""" # noqa: E501- if self.parent_run_id != other.parent_run_id:- logger.warning(- f"{self.__class__.__name__}.merge(): Parent run IDs do not match."- " Using the parent run ID of the first callback manager."- )manager = self.__class__(parent_run_id=self.parent_run_id or other.parent_run_id,handlers=[],@@ -2150,11 +2145,6 @@ class AsyncCallbackManagerForChainGroup(AsyncCallbackManager):# ['tag2', 'tag1']""" # noqa: E501- if self.parent_run_id != other.parent_run_id:- logger.warning(- f"{self.__class__.__name__}.merge(): Parent run IDs do not match."- " Using the parent run ID of the first callback manager."- )manager = self.__class__(parent_run_id=self.parent_run_id or other.parent_run_id,handlers=[],