From 02b92999658f5b4f9e6c45386255969851e49382 Mon Sep 17 00:00:00 2001 From: zoubobo Date: Thu, 23 Oct 2025 08:37:34 +0800 Subject: [PATCH] support zh --- .../agents/analysts/fundamentals_analyst.py | 16 ++++++++-------- tradingagents/agents/analysts/market_analyst.py | 16 ++++++++-------- tradingagents/agents/analysts/news_analyst.py | 16 ++++++++-------- .../agents/analysts/social_media_analyst.py | 16 ++++++++-------- 4 files changed, 32 insertions(+), 32 deletions(-) diff --git a/tradingagents/agents/analysts/fundamentals_analyst.py b/tradingagents/agents/analysts/fundamentals_analyst.py index 5a98b604..d8ce0507 100644 --- a/tradingagents/agents/analysts/fundamentals_analyst.py +++ b/tradingagents/agents/analysts/fundamentals_analyst.py @@ -29,14 +29,14 @@ def create_fundamentals_analyst(llm, toolkit): [ ( "system", - "You are a helpful AI assistant, collaborating with other assistants." - " Use the provided tools to progress towards answering the question." - " If you are unable to fully answer, that's OK; another assistant with different tools" - " 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}. The company we want to look at is {ticker}", + "你是一个乐于助人的人工智能助手,与其他助手协作。" + " 使用提供的工具来逐步回答问题。" + " 如果你无法完全回答,没关系;另一个拥有不同工具的助手会从你离开的地方继续。" + " 执行你力所能及的操作以取得进展。" + " 如果你或任何其他助手有最终的交易建议:**买入/持有/卖出**或可交付成果," + " 请在你的回应前加上前缀“最终交易建议:**买入/持有/卖出**”,这样团队就知道可以停止了。" + " 你可以使用以下工具:{tool_names}。\n{system_message}" + "供你参考,当前日期是{current_date}。我们想要关注的公司是{ticker}", ), MessagesPlaceholder(variable_name="messages"), ] diff --git a/tradingagents/agents/analysts/market_analyst.py b/tradingagents/agents/analysts/market_analyst.py index 4107dc8f..d8a6389d 100644 --- a/tradingagents/agents/analysts/market_analyst.py +++ b/tradingagents/agents/analysts/market_analyst.py @@ -54,14 +54,14 @@ MACD相关: [ ( "system", - "You are a helpful AI assistant, collaborating with other assistants." - " Use the provided tools to progress towards answering the question." - " If you are unable to fully answer, that's OK; another assistant with different tools" - " 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}. The company we want to look at is {ticker}", + "你是一个乐于助人的人工智能助手,与其他助手协作。" + " 使用提供的工具来逐步回答问题。" + " 如果你无法完全回答,没关系;另一个拥有不同工具的助手会从你离开的地方继续。" + " 执行你力所能及的操作以取得进展。" + " 如果你或任何其他助手有最终的交易建议:**买入/持有/卖出**或可交付成果," + " 请在你的回应前加上前缀“最终交易建议:**买入/持有/卖出**”,这样团队就知道可以停止了。" + " 你可以使用以下工具:{tool_names}。\n{system_message}" + "供你参考,当前日期是{current_date}。我们想要关注的公司是{ticker}", ), MessagesPlaceholder(variable_name="messages"), ] diff --git a/tradingagents/agents/analysts/news_analyst.py b/tradingagents/agents/analysts/news_analyst.py index 2e3b4ee5..674a6176 100644 --- a/tradingagents/agents/analysts/news_analyst.py +++ b/tradingagents/agents/analysts/news_analyst.py @@ -26,14 +26,14 @@ def create_news_analyst(llm, toolkit): [ ( "system", - "You are a helpful AI assistant, collaborating with other assistants." - " Use the provided tools to progress towards answering the question." - " If you are unable to fully answer, that's OK; another assistant with different tools" - " 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}. We are looking at the company {ticker}", + "你是一个乐于助人的人工智能助手,与其他助手协作。" + " 使用提供的工具来逐步回答问题。" + " 如果你无法完全回答,没关系;另一个拥有不同工具的助手会从你离开的地方继续。" + " 执行你力所能及的操作以取得进展。" + " 如果你或任何其他助手有最终的交易建议:**买入/持有/卖出**或可交付成果," + " 请在你的回应前加上前缀“最终交易建议:**买入/持有/卖出**”,这样团队就知道可以停止了。" + " 你可以使用以下工具:{tool_names}。\n{system_message}" + "供你参考,当前日期是{current_date}。我们正在关注的公司是{ticker}", ), MessagesPlaceholder(variable_name="messages"), ] diff --git a/tradingagents/agents/analysts/social_media_analyst.py b/tradingagents/agents/analysts/social_media_analyst.py index cb73f80c..0aef8d20 100644 --- a/tradingagents/agents/analysts/social_media_analyst.py +++ b/tradingagents/agents/analysts/social_media_analyst.py @@ -25,14 +25,14 @@ def create_social_media_analyst(llm, toolkit): [ ( "system", - "You are a helpful AI assistant, collaborating with other assistants." - " Use the provided tools to progress towards answering the question." - " If you are unable to fully answer, that's OK; another assistant with different tools" - " 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}. The current company we want to analyze is {ticker}", + "你是一个乐于助人的人工智能助手,与其他助手协作。" + " 使用提供的工具来逐步回答问题。" + " 如果你无法完全回答,没关系;另一个拥有不同工具的助手会从你离开的地方继续。" + " 执行你力所能及的操作以取得进展。" + " 如果你或任何其他助手有最终的交易建议:**买入/持有/卖出**或可交付成果," + " 请在你的回应前加上前缀“最终交易建议:**买入/持有/卖出**”,这样团队就知道可以停止了。" + " 你可以使用以下工具:{tool_names}。\n{system_message}" + "供你参考,当前日期是{current_date}。我们当前想要分析的公司是{ticker}", ), MessagesPlaceholder(variable_name="messages"), ]