This commit is contained in:
Team3
2026-09-27 21:36:33 +02:00
commit 498fe2220a
34 changed files with 3608 additions and 0 deletions

13
backend/prompts.py Normal file
View File

@@ -0,0 +1,13 @@
"""Prompts liegen als Markdown in prompts/, Platzhalter {{name}}."""
from . import config
def laden(name: str, **werte: str) -> str:
text = (config.PROMPTS / f"{name}.md").read_text()
for k, v in werte.items():
text = text.replace("{{" + k + "}}", v)
return text
def hinweise_block(hinweise: str) -> str:
return f"Hinweise des Auftraggebers (verbindlich): {hinweise}\n" if hinweise else ""