Spaces:
Sleeping
Sleeping
Update definitions.py
Browse files- definitions.py +7 -1
definitions.py
CHANGED
@@ -322,7 +322,13 @@ class AutonomousAgent:
|
|
322 |
return self.SecurityAgent(agent_name)
|
323 |
else:
|
324 |
return None
|
325 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
326 |
class ChatSystem:
|
327 |
"""Manages the chat interaction between users and the autonomous system."""
|
328 |
def __init__(self, agent: 'AutonomousAgentApp.AutonomousAgent'):
|
|
|
322 |
return self.SecurityAgent(agent_name)
|
323 |
else:
|
324 |
return None
|
325 |
+
class StreamlitInterface:
|
326 |
+
"""Streamlit UI integration for the Autonomous Agent system."""
|
327 |
+
|
328 |
+
def __init__(self, app: 'AutonomousAgentApp'): # Use string forward reference
|
329 |
+
self.app = app
|
330 |
+
self.chat_system = self.app.autonomous_agent.ChatSystem(self.app.autonomous_agent)
|
331 |
+
|
332 |
class ChatSystem:
|
333 |
"""Manages the chat interaction between users and the autonomous system."""
|
334 |
def __init__(self, agent: 'AutonomousAgentApp.AutonomousAgent'):
|