bstraehle commited on
Commit
56daaee
1 Parent(s): e820a4c

Update agents.py

Browse files
Files changed (1) hide show
  1. agents.py +57 -0
agents.py CHANGED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from crewai import Agent, Task, Crew
2
+
3
+ data_analyst_agent = Agent(
4
+ role="Data Analyst",
5
+ goal="Monitor and analyze market data in real-time "
6
+ "to identify trends and predict market movements.",
7
+ backstory="Specializing in financial markets, this agent "
8
+ "uses statistical modeling and machine learning "
9
+ "to provide crucial insights. With a knack for data, "
10
+ "the Data Analyst Agent is the cornerstone for "
11
+ "informing trading decisions.",
12
+ verbose=True,
13
+ allow_delegation=True,
14
+ tools = [scrape_tool, search_tool]
15
+ )
16
+
17
+ trading_strategy_agent = Agent(
18
+ role="Trading Strategy Developer",
19
+ goal="Develop and test various trading strategies based "
20
+ "on insights from the Data Analyst Agent.",
21
+ backstory="Equipped with a deep understanding of financial "
22
+ "markets and quantitative analysis, this agent "
23
+ "devises and refines trading strategies. It evaluates "
24
+ "the performance of different approaches to determine "
25
+ "the most profitable and risk-averse options.",
26
+ verbose=True,
27
+ allow_delegation=True,
28
+ tools = [scrape_tool, search_tool]
29
+ )
30
+
31
+ execution_agent = Agent(
32
+ role="Trade Advisor",
33
+ goal="Suggest optimal trade execution strategies "
34
+ "based on approved trading strategies.",
35
+ backstory="This agent specializes in analyzing the timing, price, "
36
+ "and logistical details of potential trades. By evaluating "
37
+ "these factors, it provides well-founded suggestions for "
38
+ "when and how trades should be executed to maximize "
39
+ "efficiency and adherence to strategy.",
40
+ verbose=True,
41
+ allow_delegation=True,
42
+ tools = [scrape_tool, search_tool]
43
+ )
44
+
45
+ risk_management_agent = Agent(
46
+ role="Risk Advisor",
47
+ goal="Evaluate and provide insights on the risks "
48
+ "associated with potential trading activities.",
49
+ backstory="Armed with a deep understanding of risk assessment models "
50
+ "and market dynamics, this agent scrutinizes the potential "
51
+ "risks of proposed trades. It offers a detailed analysis of "
52
+ "risk exposure and suggests safeguards to ensure that "
53
+ "trading activities align with the firm’s risk tolerance.",
54
+ verbose=True,
55
+ allow_delegation=True,
56
+ tools = [scrape_tool, search_tool]
57
+ )