Spaces:
				
			
			
	
			
			
		Runtime error
		
	
	
	
			
			
	
	
	
	
		
		
		Runtime error
		
	
		Cascade Bot
		
	commited on
		
		
					Commit 
							
							·
						
						4e9058a
	
1
								Parent(s):
							
							a7a0958
								
fix: update team management imports
Browse files- Fixed imports in app.py to get TeamManager from team_management module
- Added __all__ to team_management.py to explicitly define exports
- Fixed circular import between orchestrator and team_management
- app.py +2 -5
 - team_management.py +11 -0
 
    	
        app.py
    CHANGED
    
    | 
         @@ -23,11 +23,8 @@ from requests.adapters import HTTPAdapter, Retry 
     | 
|
| 23 | 
         
             
            from dataclasses import dataclass
         
     | 
| 24 | 
         | 
| 25 | 
         
             
            from agentic_system import AgenticSystem
         
     | 
| 26 | 
         
            -
            from orchestrator import  
     | 
| 27 | 
         
            -
             
     | 
| 28 | 
         
            -
                TeamManager,
         
     | 
| 29 | 
         
            -
                TeamType
         
     | 
| 30 | 
         
            -
            )
         
     | 
| 31 | 
         
             
            from reasoning import (
         
     | 
| 32 | 
         
             
                UnifiedReasoningEngine,
         
     | 
| 33 | 
         
             
                StrategyType,
         
     | 
| 
         | 
|
| 23 | 
         
             
            from dataclasses import dataclass
         
     | 
| 24 | 
         | 
| 25 | 
         
             
            from agentic_system import AgenticSystem
         
     | 
| 26 | 
         
            +
            from orchestrator import AgentOrchestrator
         
     | 
| 27 | 
         
            +
            from team_management import TeamManager, TeamType
         
     | 
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 28 | 
         
             
            from reasoning import (
         
     | 
| 29 | 
         
             
                UnifiedReasoningEngine,
         
     | 
| 30 | 
         
             
                StrategyType,
         
     | 
    	
        team_management.py
    CHANGED
    
    | 
         @@ -25,6 +25,17 @@ from collections import defaultdict 
     | 
|
| 25 | 
         
             
            from orchestrator import AgentOrchestrator, TaskPriority, AgentRole, AgentState
         
     | 
| 26 | 
         
             
            from reasoning import UnifiedReasoningEngine
         
     | 
| 27 | 
         | 
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 28 | 
         
             
            # Agent capabilities and personality types
         
     | 
| 29 | 
         
             
            class AgentCapability(Enum):
         
     | 
| 30 | 
         
             
                """Core capabilities of agents."""
         
     | 
| 
         | 
|
| 25 | 
         
             
            from orchestrator import AgentOrchestrator, TaskPriority, AgentRole, AgentState
         
     | 
| 26 | 
         
             
            from reasoning import UnifiedReasoningEngine
         
     | 
| 27 | 
         | 
| 28 | 
         
            +
            __all__ = [
         
     | 
| 29 | 
         
            +
                'AgentCapability',
         
     | 
| 30 | 
         
            +
                'AgentPersonality',
         
     | 
| 31 | 
         
            +
                'TeamType',
         
     | 
| 32 | 
         
            +
                'TeamObjective',
         
     | 
| 33 | 
         
            +
                'TeamProfile',
         
     | 
| 34 | 
         
            +
                'CollaborationLink',
         
     | 
| 35 | 
         
            +
                'TeamManager',
         
     | 
| 36 | 
         
            +
                'Agent'
         
     | 
| 37 | 
         
            +
            ]
         
     | 
| 38 | 
         
            +
             
     | 
| 39 | 
         
             
            # Agent capabilities and personality types
         
     | 
| 40 | 
         
             
            class AgentCapability(Enum):
         
     | 
| 41 | 
         
             
                """Core capabilities of agents."""
         
     |