implemenation on the ai agents and registry

This commit is contained in:
2026-09-30 14:56:08 +05:30
parent aa3bb35733
commit 5a7d32cc04
15 changed files with 803 additions and 72 deletions

View File

@@ -28,6 +28,8 @@ from core.logger import logger
from core.agent import MasterAgent, Agent
from core.message_bus import message_bus
from core.http_client import close_session
from core.registry import registry
from config.system_config import GO_API_BASE_URL, INTERNAL_API_KEY
from core.types import AgentTask, MessageType, Priority
from agents.order_agent import OrderAgent
@@ -125,6 +127,11 @@ async def production_mode():
system = LogiFlowAI()
system.initialize_agents()
# Operator settings from the backend's agent registry (autonomy, model,
# skills on/off, thresholds). Polls with ETag; until it answers, and if it
# never does, every agent runs on its env defaults exactly as before.
registry_task = asyncio.create_task(registry.run(GO_API_BASE_URL, INTERNAL_API_KEY)) # noqa: F841 — cancelled at shutdown
logger.info("Infrastructure connected. Press Ctrl+C to stop.")
loop = asyncio.get_running_loop()