diff --git a/libs/core/langchain_core/callbacks/base.py b/libs/core/langchain_core/callbacks/base.py index bd817ef097b..819b3d07316 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.py index 77b963388c3..ba42a274a9d 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=[],