Files
upo-app-agents/src/app/agents/prompts/__init__.py
Simo 4ba44abb19 Better Prompt (#45)
* Enhance report generation and team leader prompts with conditional output rules for empty sections.

* Update .gitignore and configuration for model adjustments; refine query classification prompt

* Enforce max response length in prompts

* Documentazione tool essenziale per il loro utilizzo da parte degli LLM.

* istruzioni chiare sui tool disponibili nei promt degli agenti

* corretto incongruenze nel report generation prompt

* convertito i promt in file markdown
2025-10-29 15:45:05 +01:00

28 lines
990 B
Python

from pathlib import Path
from datetime import datetime
__PROMPTS_PATH = Path(__file__).parent
def __load_prompt(file_name: str) -> str:
file_path = __PROMPTS_PATH / file_name
content = file_path.read_text(encoding='utf-8').strip()
# Replace {{CURRENT_DATE}} placeholder with actual current date
current_date = datetime.now().strftime("%Y-%m-%d")
content = content.replace("{{CURRENT_DATE}}", current_date)
return content
TEAM_LEADER_INSTRUCTIONS = __load_prompt("team_leader.md")
MARKET_INSTRUCTIONS = __load_prompt("team_market.md")
NEWS_INSTRUCTIONS = __load_prompt("team_news.md")
SOCIAL_INSTRUCTIONS = __load_prompt("team_social.md")
QUERY_CHECK_INSTRUCTIONS = __load_prompt("query_check.md")
REPORT_GENERATION_INSTRUCTIONS = __load_prompt("report_generation.md")
__all__ = [
"TEAM_LEADER_INSTRUCTIONS",
"MARKET_INSTRUCTIONS",
"NEWS_INSTRUCTIONS",
"SOCIAL_INSTRUCTIONS",
"QUERY_CHECK_INSTRUCTIONS",
"REPORT_GENERATION_INSTRUCTIONS",
]