HearthNet-Nemotron / hearthnet /controller.py
GitHub Actions
Build Phase 1 HearthNet Space
9fb722e
Raw
History Blame
450 Bytes
from __future__ import annotations
from typing import Any
from hearthnet.node import HearthNode
class HearthNetController:
def __init__(self, node: HearthNode) -> None:
self.node = node
def snapshot(self) -> dict[str, Any]:
return self.node.snapshot()
def apply_emergency_probe(self, results: dict[str, bool]) -> dict[str, Any]:
self.node.detector.apply_probe_results(results)
return self.snapshot()