diff --git a/src/main.py b/src/main.py index 620e453..5f3583f 100644 --- a/src/main.py +++ b/src/main.py @@ -21,6 +21,7 @@ from src.daemon.router import AgentRouter, AgentProfile, LLMDriver from src.daemon.health import HealthChecker from src.daemon.experience import ExperienceDistiller, ExperienceStore from src.daemon.inbox import InboxWatcher +from src.daemon.guardrails import GuardrailEngine from src.utils import get_data_root logger = logging.getLogger("moziplus-v2") @@ -174,6 +175,7 @@ async def lifespan(app: FastAPI): spawner=spawner, counter=counter, db_path=default_db_path, + guardrails=GuardrailEngine(config_path=Path(__file__).parent.parent / "config" / "guardrails.yaml"), ) # ── 集成模块 ──