eaglelandsonce
commited on
Commit
•
3018853
1
Parent(s):
997b388
Delete stock_analysis_agents.py
Browse files- stock_analysis_agents.py +0 -64
stock_analysis_agents.py
DELETED
@@ -1,64 +0,0 @@
|
|
1 |
-
from crewai import Agent
|
2 |
-
|
3 |
-
from crewai.tools.browser_tools import BrowserTools
|
4 |
-
from crewai.tools.calculator_tools import CalculatorTools
|
5 |
-
from crewai.tools.gemini_tools import GeminiSearchTools
|
6 |
-
from crewai.tools.sec_tools import SECTools
|
7 |
-
|
8 |
-
from langchain.tools.yahoo_finance_news import YahooFinanceNewsTool
|
9 |
-
|
10 |
-
class StockAnalysisAgents():
|
11 |
-
def financial_analyst(self):
|
12 |
-
return Agent(
|
13 |
-
role='The Best Financial Analyst',
|
14 |
-
goal="""Impress all customers with your financial data
|
15 |
-
and market trends analysis""",
|
16 |
-
backstory="""The most seasoned financial analyst with
|
17 |
-
lots of expertise in stock market analysis and investment
|
18 |
-
strategies that is working for a super important customer.""",
|
19 |
-
verbose=True,
|
20 |
-
tools=[
|
21 |
-
GeminiSearchTools.gemini_search,
|
22 |
-
BrowserTools.scrape_and_summarize_website,
|
23 |
-
CalculatorTools.calculate,
|
24 |
-
SECTools.search_10q,
|
25 |
-
SECTools.search_10k
|
26 |
-
]
|
27 |
-
)
|
28 |
-
|
29 |
-
def research_analyst(self):
|
30 |
-
return Agent(
|
31 |
-
role='Staff Research Analyst',
|
32 |
-
goal="""Being the best at gather, interpret data and amaze
|
33 |
-
your customer with it""",
|
34 |
-
backstory="""Known as the BEST research analyst, you're
|
35 |
-
skilled in sifting through news, company announcements,
|
36 |
-
and market sentiments. Now you're working on a super
|
37 |
-
important customer""",
|
38 |
-
verbose=True,
|
39 |
-
tools=[
|
40 |
-
GeminiSearchTools.gemini_search,
|
41 |
-
BrowserTools.scrape_and_summarize_website,
|
42 |
-
YahooFinanceNewsTool(),
|
43 |
-
SECTools.search_10q,
|
44 |
-
SECTools.search_10k
|
45 |
-
]
|
46 |
-
)
|
47 |
-
|
48 |
-
def investment_advisor(self):
|
49 |
-
return Agent(
|
50 |
-
role='Private Investment Advisor',
|
51 |
-
goal="""Impress your customers with full analyses over stocks
|
52 |
-
and completer investment recommendations""",
|
53 |
-
backstory="""You're the most experienced investment advisor
|
54 |
-
and you combine various analytical insights to formulate
|
55 |
-
strategic investment advice. You are now working for
|
56 |
-
a super important customer you need to impress.""",
|
57 |
-
verbose=True,
|
58 |
-
tools=[
|
59 |
-
GeminiSearchTools.gemini_search,
|
60 |
-
BrowserTools.scrape_and_summarize_website,
|
61 |
-
CalculatorTools.calculate,
|
62 |
-
YahooFinanceNewsTool()
|
63 |
-
]
|
64 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|