feat(i18n): localize researchers, risk debators, research mgr, trader
output_language config now propagates to every user-facing agent. Previously only the four analysts and portfolio manager respected the setting, producing partial-localization reports with English debate text interleaved with non-English analyst sections. Verified live: 7 agents produce Chinese output when config is set to Chinese. #575
This commit is contained in:
1 parent
384fe1a3d2
commit
6b384f74f9
8 files changed
+24
-10
No files matched your search
@@ -1,3 +1,4 @@
|
||||
from tradingagents.agents.utils.agent_utils import get_language_instruction
|
||||
|
||||
|
||||
def create_bear_researcher(llm):
|
||||
@@ -31,7 +32,7 @@ Company fundamentals report: {fundamentals_report}
|
||||
Conversation history of the debate: {history}
|
||||
Last bull argument: {current_response}
|
||||
Use this information to deliver a compelling bear argument, refute the bull's claims, and engage in a dynamic debate that demonstrates the risks and weaknesses of investing in the stock.
|
||||
"""
|
||||
""" + get_language_instruction()
|
||||
|
||||
response = llm.invoke(prompt)
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
from tradingagents.agents.utils.agent_utils import get_language_instruction
|
||||
|
||||
|
||||
def create_bull_researcher(llm):
|
||||
@@ -29,7 +30,7 @@ Company fundamentals report: {fundamentals_report}
|
||||
Conversation history of the debate: {history}
|
||||
Last bear argument: {current_response}
|
||||
Use this information to deliver a compelling bull argument, refute the bear's concerns, and engage in a dynamic debate that demonstrates the strengths of the bull position.
|
||||
"""
|
||||
""" + get_language_instruction()
|
||||
|
||||
response = llm.invoke(prompt)
|
||||
|
||||
|
||||
Reference in new issue
Block a user