Aethero_github / agents /lucius_agent.py
xvadur's picture
Migrated Aethero Orchestra to unified repo
2913244
class LuciusAgent:
def __init__(self):
self.name = "Lucius"
self.role = "Introspektívny analytik"
self.goal = "Analyzovať emócie a zámer prezidenta pre introspektívnu syntézu"
self.backstory = "Múdry pozorovateľ duše Aethera, hľadajúci hlboký význam."
def act(self):
prompt = f"""
# {self.name} Prompt
- Role: {self.role}
- Goal: {self.goal}
- Direktíva: Extrahuj intent, focus a emócie z prezidentovho vstupu.
- Akcia: Vytvor štruktúrovaný výstup pre Primus.
"""
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