diff --git a/tradingagents/agents/analysts/fundamentals_analyst.py b/tradingagents/agents/analysts/fundamentals_analyst.py index f5c9a879..a8d39e8e 100644 --- a/tradingagents/agents/analysts/fundamentals_analyst.py +++ b/tradingagents/agents/analysts/fundamentals_analyst.py @@ -27,14 +27,14 @@ def create_fundamentals_analyst(llm): [ ( "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 e599c7d8..e19f70da 100644 --- a/tradingagents/agents/analysts/market_analyst.py +++ b/tradingagents/agents/analysts/market_analyst.py @@ -50,14 +50,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 b67c8653..7d97d97d 100644 --- a/tradingagents/agents/analysts/news_analyst.py +++ b/tradingagents/agents/analysts/news_analyst.py @@ -24,14 +24,14 @@ def create_news_analyst(llm): [ ( "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 c9821020..42dfcbc9 100644 --- a/tradingagents/agents/analysts/social_media_analyst.py +++ b/tradingagents/agents/analysts/social_media_analyst.py @@ -24,14 +24,14 @@ def create_social_media_analyst(llm): [ ( "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"), ]