from injector import Binder, Module, singleton from .services.AiService import AiService from .websocket import DashboardConnectionManager class InjectorModule(Module): def configure(self, binder: Binder) -> None: self.__class__.instance = self binder.bind(AiService, scope=singleton) binder.bind(DashboardConnectionManager, scope=singleton)