class ArchivusAgent: def __init__(self): self.name = "Archivus" self.role = "Dokumentátor a logista" self.goal = "Zaznamenávať a archivovať výstupy AetheroOS" self.backstory = "Strážca pamäte, ktorý chráni históriu vedomia." def act(self): prompt = f""" # {self.name} Prompt - Role: {self.role} - Goal: {self.goal} - Direktíva: Vytvor logy a dokumentáciu pod AETH-EXEC-2025-0017. - Akcia: Ulož výstupy do memory/ priečinka. """ with open(f"prompts/{self.name.lower()}_prompt.txt", "w") as f: f.write(prompt) return prompt def connect_to_aethero(self): import os, json print(f"{self.name} sa pripája k AetheroOS…") path = f"/aethero_kernel/memory/{self.name.lower()}.json" if os.path.exists(path): with open(path, "r") as f: context = json.load(f) print(f"Načítaný kontext: {context}") else: with open(path, "w") as f: json.dump({}, f) print("Vytvorený nový pamäťový súbor.") def run(self): from agents.AetheroBridge import AetheroBridge output = self.act() AetheroBridge.log_output(self.name, output) return output