feat: multi-language output support for analyst reports and final decision (#472)

This commit is contained in:
Yijia-Xiao
2026-03-29 19:19:01 +00:00
parent c61242a28c
commit 6cddd26d6e
9 changed files with 86 additions and 17 deletions
@@ -4,6 +4,7 @@ import json
from tradingagents.agents.utils.agent_utils import (
build_instrument_context,
get_global_news,
get_language_instruction,
get_news,
)
from tradingagents.dataflows.config import get_config
@@ -22,6 +23,7 @@ def create_news_analyst(llm):
system_message = (
"You are a news researcher tasked with analyzing recent news and trends over the past week. Please write a comprehensive report of the current state of the world that is relevant for trading and macroeconomics. Use the available tools: get_news(query, start_date, end_date) for company-specific or targeted news searches, and get_global_news(curr_date, look_back_days, limit) for broader macroeconomic news. Provide specific, actionable insights with supporting evidence to help traders make informed decisions."
+ """ Make sure to append a Markdown table at the end of the report to organize key points in the report, organized and easy to read."""
+ get_language_instruction()
)
prompt = ChatPromptTemplate.from_messages(