A programming framework for agentic AI
Remove namespace check (#411)
Jack Gerritsbb55e7a20ed9
diff --git a/python/src/agnext/application/_single_threaded_agent_runtime.py b/python/src/agnext/application/_single_threaded_agent_runtime.pyindex 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 messagelogger.info(f"Sending message of type {type(message).__name__} to {recipient.type}: {content}")