mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-04-30 23:02:50 +00:00
fix: validate entity_type tag before auto-registering in emit()
This commit is contained in:
@@ -455,7 +455,7 @@ class CrewAIEventsBus:
|
||||
... # or future.result(timeout=5.0) in sync code
|
||||
"""
|
||||
if (
|
||||
hasattr(source, "entity_type")
|
||||
getattr(source, "entity_type", None) in ("flow", "crew", "agent")
|
||||
and id(source) not in self._registered_entity_ids
|
||||
):
|
||||
self.register_entity(source)
|
||||
|
||||
Reference in New Issue
Block a user