INNER CODE UNIT · Python

_save_events

bunkeriot/BunkerM · backend/app/agent-api/main.py:159

def _save_events(events: list):
    DATA_DIR.mkdir(parents=True, exist_ok=True)
    EVENTS_FILE.write_text(json.dumps(events, indent=2))


def _now() -> str:
    return datetime.now(timezone.utc).isoformat()


# ─── App & shared state ───────────────────────────────────────────────────────

app = FastAPI(title="BunkerM Agent API")
scheduler = BackgroundScheduler()

_instance_id: str = ""
_activated: bool = False
_lock = Lock()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…