Spaces:
Runtime error
Runtime error
| import logging | |
| from logos.agent_dispatcher import NeuralRouter | |
| # Setup Logging | |
| logging.basicConfig( | |
| level=logging.INFO, | |
| format='%(asctime)s - %(name)s - %(levelname)s - %(message)s' | |
| ) | |
| logger = logging.getLogger("SwarmMissionControl") | |
| def main(): | |
| print("========================================") | |
| print(" LOGOS LOCAL SWARM MISSION CONTROL ") | |
| print("========================================") | |
| print("Available Agents:") | |
| print(" - FRACTAL ARCHITECT (Storage/Code)") | |
| print(" - PRIME NAVIGATOR (Math/Physics)") | |
| print(" - CREATIVE DIRECTOR (Aesthetics/Vision)") | |
| print("----------------------------------------") | |
| # Initialize the Router | |
| # Assuming port 1234 is LM Studio | |
| router = NeuralRouter(base_url="http://localhost:1234/v1") | |
| print("\n[SYSTEM] Swarm standing by. Enter a mission prompt.") | |
| print("Example: 'Analyze the project topology and shard its memory.'") | |
| while True: | |
| try: | |
| mission = input("\n[ARCHITECT] > ") | |
| if mission.lower() in ['exit', 'quit']: | |
| break | |
| # Run the mission through the Neural Router | |
| router.run(mission) | |
| except KeyboardInterrupt: | |
| break | |
| except Exception as e: | |
| logger.error(f"Mission Failed: {e}") | |
| if __name__ == "__main__": | |
| main() | |