anderson-ufrj commited on
Commit
cea797d
·
1 Parent(s): 412962c

fix: remove CommunicationAgent from agents __init__ to avoid import-time instantiation

Browse files

- Comment out drummond import in __init__.py to prevent abstract class instantiation errors on HuggingFace Spaces
- The error 'Can't instantiate abstract class CommunicationAgent with abstract method shutdown' was caused by import-time evaluation
- CommunicationAgent is now only imported where needed via chat_drummond_factory
- Remove Python cache files that might cause deployment issues

src/agents/__init__.py CHANGED
@@ -29,7 +29,8 @@ from .zumbi import InvestigatorAgent
29
  from .anita import AnalystAgent
30
  from .tiradentes import ReporterAgent
31
  from .ayrton_senna import SemanticRouter
32
- from .drummond import CommunicationAgent
 
33
 
34
  __all__ = [
35
  # Base classes
@@ -47,7 +48,7 @@ __all__ = [
47
  "AnalystAgent",
48
  "ReporterAgent",
49
  "SemanticRouter",
50
- "CommunicationAgent",
51
  # Memory Agent
52
  "ContextMemoryAgent",
53
  "MemoryEntry",
 
29
  from .anita import AnalystAgent
30
  from .tiradentes import ReporterAgent
31
  from .ayrton_senna import SemanticRouter
32
+ # Commenting out drummond import to avoid import-time issues on HuggingFace Spaces
33
+ # from .drummond import CommunicationAgent
34
 
35
  __all__ = [
36
  # Base classes
 
48
  "AnalystAgent",
49
  "ReporterAgent",
50
  "SemanticRouter",
51
+ # "CommunicationAgent", # Commented out to avoid import issues
52
  # Memory Agent
53
  "ContextMemoryAgent",
54
  "MemoryEntry",
src/agents/__pycache__/__init__.cpython-313.pyc DELETED
Binary file (1.06 kB)
 
src/agents/__pycache__/deodoro.cpython-313.pyc DELETED
Binary file (16.2 kB)
 
src/api/__pycache__/__init__.cpython-313.pyc DELETED
Binary file (170 Bytes)
 
src/api/__pycache__/auth.cpython-313.pyc DELETED
Binary file (14 kB)