refactor: five-tier rating scale and streamlined agent prompts

This commit is contained in:
Yijia-Xiao
2026-03-22 23:07:20 +00:00
parent c3ba3bf428
commit 318adda0c6
11 changed files with 38 additions and 28 deletions
+4 -5
View File
@@ -21,12 +21,11 @@ from tradingagents.agents.utils.news_data_tools import (
def build_instrument_context(ticker: str) -> str:
"""Describe the exact instrument so agents avoid cross-exchange symbol mixups."""
"""Describe the exact instrument so agents preserve exchange-qualified tickers."""
return (
f"The exact listed instrument to analyze is `{ticker}`. "
"Use this exact ticker in every tool call, report, and recommendation. "
"If it includes an exchange suffix such as `.TO`, `.L`, `.HK`, or `.T`, preserve that suffix and do not mix in companies from other exchanges that share the same root symbol. "
"If it does not include a suffix, do not invent one."
f"The instrument to analyze is `{ticker}`. "
"Use this exact ticker in every tool call, report, and recommendation, "
"preserving any exchange suffix (e.g. `.TO`, `.L`, `.HK`, `.T`)."
)
def create_msg_delete():