Projeto do Agent Contas ORACLE
This commit is contained in:
10
app/agents/contas_prompting.py
Normal file
10
app/agents/contas_prompting.py
Normal 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()
|
||||
Reference in New Issue
Block a user