Tasks 12 + 13: worker node agent + Phi-4-mini query triage
Task 12 — node_agent/agent.py: standalone AMQP worker agent config reader, model discovery, registration publisher, ping/pong handler, model swap with systemctl + health poll (14 tests) Task 13 — triage.py: query classification + cluster node selection classify_query() routes to Phi-4-mini at :8083 select_node() picks best worker by model affinity get_inference_url() replaces hardcoded LLAMA_SERVER_BASE cluster.py stores node ip for URL construction (6 tests + 5 existing chat tests mocked for triage) 168 tests passing (+20 new)
This commit is contained in:
@@ -64,6 +64,7 @@ async def handle_registration(exchange: str, routing_key: str, payload: dict) ->
|
||||
"name": node_name,
|
||||
"type": node_type,
|
||||
"status": "active",
|
||||
"ip": payload.get("ip"),
|
||||
"capabilities": payload.get("capabilities", []),
|
||||
"active_model": payload.get("active_model"),
|
||||
"load": payload.get("load"),
|
||||
|
||||
Reference in New Issue
Block a user