fix(prompts): put the current date at the top of analyst prompts

The date hint sat at the end of each analyst's system prompt, after a long
indicator block, so weaker models anchored to their training cutoff when
generating tool-call date ranges. Lead each prompt with it instead.
This commit is contained in:
Yijia-Xiao committed 2026-06-21 23:50:33 +00:00
1 parent a0120e1805
commit 2b2d685df6
4 files changed
+11 -8

No files matched your search

@@ -40,8 +40,9 @@ def create_news_analyst(llm):
" will help where you left off. Execute what you can to make progress."
" If you or any other assistant has the FINAL TRANSACTION PROPOSAL: **BUY/HOLD/SELL** or deliverable,"
" prefix your response with FINAL TRANSACTION PROPOSAL: **BUY/HOLD/SELL** so the team knows to stop."
" You have access to the following tools: {tool_names}.\n{system_message}"
"For your reference, the current date is {current_date}. {instrument_context}",
" You have access to the following tools: {tool_names}."
" Today's date is {current_date}; treat it as 'now' for all analysis and tool-call date ranges. {instrument_context}\n"
"{system_message}",
),
MessagesPlaceholder(variable_name="messages"),
]