Projeto do Agent Contas ORACLE

This commit is contained in:
2026-08-19 09:35:50 -03:00
commit 950a2bcd33
1366 changed files with 177217 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
from __future__ import annotations
from functools import lru_cache
from pathlib import Path
import yaml
@lru_cache(maxsize=16)
def load_domain_prompt(name: str) -> str:
path = Path(__file__).resolve().parents[2] / "config" / "prompts" / f"{name}.yaml"
data = yaml.safe_load(path.read_text(encoding="utf-8")) or {}
return str(data.get("system") or "").strip()