Better Prompt #45
Reference in New Issue
Block a user
Delete Branch "41-better-prompt"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Miglioramento prompt LLM idioti
Pull Request Overview
This PR modernizes documentation and improves code clarity by migrating prompt instructions from
.txtto.mdformat and adding comprehensive docstrings to API tools and the plan memory tool. The changes enhance developer experience through better documentation while adding dynamic date injection and new model configurations..txtto.mdformat with significantly expanded and structured instructionsmarket_tool.py,news_tool.py,social_tool.py,plan_memory_tool.py){{CURRENT_DATE}}placeholder replacement in prompt loadingReviewed Changes
Copilot reviewed 22 out of 23 changed files in this pull request and generated 3 comments.
Show a summary per file
src/app/api/tools/social_tool.pysrc/app/api/tools/news_tool.pysrc/app/api/tools/market_tool.pysrc/app/agents/prompts/team_social.txtsrc/app/agents/prompts/team_social.mdsrc/app/agents/prompts/team_news.txtsrc/app/agents/prompts/team_news.mdsrc/app/agents/prompts/team_market.txtsrc/app/agents/prompts/team_market.mdsrc/app/agents/prompts/team_leader.txtsrc/app/agents/prompts/team_leader.mdsrc/app/agents/prompts/report_generation.txtsrc/app/agents/prompts/report_generation.mdsrc/app/agents/prompts/query_check.txtsrc/app/agents/prompts/query_check.mdsrc/app/agents/prompts/__init__.pysrc/app/agents/plan_memory_tool.pydocs/Flow_Sequence_Diagrams.mddocs/Docs_Obsolescenza_Report.mddocs/Current_Architecture.mdconfigs.yaml.gitignore💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
@@ -8,0 +8,4 @@content = file_path.read_text(encoding='utf-8').strip()# Replace {{CURRENT_DATE}} placeholder with actual current datecurrent_date = datetime.now().strftime("%Y-%m-%d")content = content.replace("{{CURRENT_DATE}}", current_date)Using
datetime.now()without timezone information can lead to inconsistent behavior in different environments. Consider usingdatetime.now(timezone.utc)to explicitly specify UTC timezone for consistent date handling across deployments.@@ -0,0 +6,4 @@**CRITICAL DATA PRINCIPLES:**1. **Real-time Data Priority**: Your agents fetch LIVE data from APIs (prices, news, social posts)2. **Timestamps Matter**: All data your agents provide is current (as of {{CURRENT\_DATE}})Escaped underscore in placeholder. Should be
{{CURRENT_DATE}}without backslashes.@@ -0,0 +231,4 @@**CRITICAL REMINDERS:**1. Data from agents is ALWAYS current (today is {{CURRENT\_DATE}})Escaped underscore in placeholder. Should be
{{CURRENT_DATE}}without backslashes.Questo documento non serve
Non so se serve questo documento
Questo documento non serve
Non saprei se è utile questo documento