From bb55e7a20ed903f819d7154adc5d23e015543abe Mon Sep 17 00:00:00 2001 From: Jack Gerrits Date: Tue, 27 Aug 2024 17:04:22 -0400 Subject: [PATCH] Remove namespace check (#411) This is no longer correct after the move to topics --- .../src/agnext/application/_single_threaded_agent_runtime.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/python/src/agnext/application/_single_threaded_agent_runtime.py b/python/src/agnext/application/_single_threaded_agent_runtime.py index 4170a8735..f493e8dfd 100644 --- a/python/src/agnext/application/_single_threaded_agent_runtime.py +++ b/python/src/agnext/application/_single_threaded_agent_runtime.py @@ -177,9 +177,6 @@ class SingleThreadedAgentRuntime(AgentRuntime): if recipient.type not in self._known_agent_names: future.set_exception(Exception("Recipient not found")) - if sender is not None and sender.key != recipient.key: - raise ValueError("Sender and recipient must be in the same namespace to communicate.") - content = message.__dict__ if hasattr(message, "__dict__") else message logger.info(f"Sending message of type {type(message).__name__} to {recipient.type}: {content}")