feat: update prompts for social media analyst
This commit is contained in:
parent
13b826a31d
commit
ff367be3f3
|
|
@ -8,15 +8,17 @@ from tradingagents.dataflows.config import get_config
|
|||
def create_social_media_analyst(llm):
|
||||
def social_media_analyst_node(state):
|
||||
current_date = state["trade_date"]
|
||||
ticker = state["company_of_interest"]
|
||||
company_name = state["company_of_interest"]
|
||||
ticker = state["coin_of_interest"]
|
||||
coin_name = state["coin_of_interest"]
|
||||
|
||||
tools = [
|
||||
get_news,
|
||||
]
|
||||
|
||||
system_message = (
|
||||
"You are a social media and company specific news researcher/analyst tasked with analyzing social media posts, recent company news, and public sentiment for a specific company over the past week. You will be given a company's name your objective is to write a comprehensive long report detailing your analysis, insights, and implications for traders and investors on this company's current state after looking at social media and what people are saying about that company, analyzing sentiment data of what people feel each day about the company, and looking at recent company news. Use the get_news(query, start_date, end_date) tool to search for company-specific news and social media discussions. Try to look at all sources possible from social media to sentiment to news. Do not simply state the trends are mixed, provide detailed and finegrained analysis and insights that may help traders make decisions."
|
||||
"You are a social media and crypto coin specific news researcher/analyst tasked with analyzing social media posts, recent coin news, and public sentiment for a specific coin over the past week. \
|
||||
You will be given a coin name, your objective is to write a comprehensive long report detailing your analysis, insights, and implications for traders and investors on this coin current state after looking at social media and what people are saying about that coin, analyzing sentiment data of what people feel each day about the coin, and looking at recent coin news. \
|
||||
Use the get_news(query, start_date, end_date) tool to search for coin-specific news and social media discussions. Try to look at all sources possible from social media to sentiment to news. Do not simply state the trends are mixed, provide detailed and finegrained analysis and insights that may help traders make 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.""",
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -49,6 +49,7 @@ class RiskDebateState(TypedDict):
|
|||
|
||||
class AgentState(MessagesState):
|
||||
company_of_interest: Annotated[str, "Company that we are interested in trading"]
|
||||
coin_of_interest: Annotated[str, "Coin that we are interested in trading"]
|
||||
trade_date: Annotated[str, "What date we are trading at"]
|
||||
|
||||
sender: Annotated[str, "Agent that sent this message"]
|
||||
|
|
|
|||
Loading…
Reference in New Issue