Spaces:
Runtime error
Runtime error
Cascade Bot
commited on
Commit
·
72416ea
1
Parent(s):
6435f9a
fix: update agentic system initialization
Browse files- Fixed AgenticSystem initialization to use config
- Added consistent configuration for all components
- Simplified component initialization
app.py
CHANGED
@@ -96,19 +96,26 @@ class ChatInterface:
|
|
96 |
if not check_network():
|
97 |
raise ConnectionError("No network connectivity. Please check your connection.")
|
98 |
|
99 |
-
# Initialize core components
|
100 |
-
|
101 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
|
103 |
-
# Initialize
|
|
|
|
|
104 |
self.reasoning_engine = UnifiedReasoningEngine()
|
105 |
|
106 |
# Set up the agentic system
|
107 |
-
self.agentic_system = AgenticSystem(
|
108 |
-
orchestrator=self.orchestrator,
|
109 |
-
team_manager=self.team_manager,
|
110 |
-
reasoning_engine=self.reasoning_engine
|
111 |
-
)
|
112 |
|
113 |
# Initialize FastAPI app
|
114 |
self.app = FastAPI()
|
|
|
96 |
if not check_network():
|
97 |
raise ConnectionError("No network connectivity. Please check your connection.")
|
98 |
|
99 |
+
# Initialize core components with consistent configuration
|
100 |
+
config = {
|
101 |
+
"min_confidence": 0.7,
|
102 |
+
"parallel_threshold": 3,
|
103 |
+
"learning_rate": 0.1,
|
104 |
+
"strategy_weights": {
|
105 |
+
"LOCAL_LLM": 0.8,
|
106 |
+
"CHAIN_OF_THOUGHT": 0.6,
|
107 |
+
"TREE_OF_THOUGHTS": 0.5,
|
108 |
+
"META_LEARNING": 0.4
|
109 |
+
}
|
110 |
+
}
|
111 |
|
112 |
+
# Initialize components
|
113 |
+
self.orchestrator = AgentOrchestrator(config)
|
114 |
+
self.team_manager = TeamManager(self.orchestrator)
|
115 |
self.reasoning_engine = UnifiedReasoningEngine()
|
116 |
|
117 |
# Set up the agentic system
|
118 |
+
self.agentic_system = AgenticSystem(config)
|
|
|
|
|
|
|
|
|
119 |
|
120 |
# Initialize FastAPI app
|
121 |
self.app = FastAPI()
|