LiuZiyi commited on
Commit
6fa5083
β€’
1 Parent(s): 10737c2

initial commit

Browse files
Files changed (5) hide show
  1. .gitignore +5 -0
  2. app.py +67 -0
  3. output.txt +219 -0
  4. poetry.lock +0 -0
  5. pyproject.toml +29 -0
.gitignore ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ # environment variables
2
+ .env
3
+
4
+ #Cache folders
5
+ __pycache__/
app.py ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ from crewai import Agent, Task, Crew, Process
3
+ from crewai_tools import SerperDevTool
4
+ from langchain_openai import ChatOpenAI
5
+ from dotenv import load_dotenv
6
+ load_dotenv()
7
+
8
+ search_tool = SerperDevTool()
9
+
10
+ # Define agents with roles and goals
11
+ researcher = Agent(
12
+ role = "Senior Research Assistant",
13
+ goal = "Look up the latest Advancements in AI Agents",
14
+ backstory = """
15
+ You work at a leading tech think tank.
16
+ Your expertise lies in searching Google for AI Agent frameworks.
17
+ You have a knack for dissecting complex data and presenting actionable insights.
18
+ """,
19
+ verbose = True,
20
+ allow_delegation = False,
21
+ tools=[search_tool],
22
+ llm=ChatOpenAI(model_name="gpt-3.5-turbo-0125", temperature=0.2)
23
+ )
24
+
25
+ writer = Agent(
26
+ role = "Professional Short-Article Writer",
27
+ goal = "Summarise the latest advancement in AI agents in a concise artcle",
28
+ backstory = """
29
+ You are a renowned Content Strategist, known for your insightful and engaging articles.
30
+ You transform complex concepts into compelling narratives.
31
+ """,
32
+ verbose = True,
33
+ allow_delegation = True,
34
+ llm=ChatOpenAI(model_name="gpt-3.5-turbo-0125", temperature=0.7)
35
+ )
36
+
37
+ # Create tasks for the agents
38
+ research = Task(
39
+ description="""
40
+ Conduct a comprehensive analysis of the latest advancements in AI Agents in April of 2024.
41
+ Identify key trends, breakthrough technologies, and potential industry impacts.
42
+ """,
43
+ expected_output="Full analysis in bullet points",
44
+ agent=researcher
45
+ )
46
+
47
+ write = Task(
48
+ description="""
49
+ Using the insights provided, write a short article that highlights the most significat AI Agent advancements.
50
+ Your post should be informative yet accessible, catering to a tech-savvy audience.
51
+ Make it sound cool, avoid complex words so it doesn't sound like AI.
52
+ """,
53
+ expected_output="Full blog post of at least 3 paragraphs",
54
+ agent=writer
55
+ )
56
+
57
+ # Instantiate your crew with a sequential process
58
+ crew = Crew(
59
+ agents=[researcher,writer],
60
+ tasks=[research,write],
61
+ verbose=1
62
+ )
63
+
64
+ result = crew.kickoff()
65
+
66
+ print("####")
67
+ print(result)
output.txt ADDED
@@ -0,0 +1,219 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [DEBUG]: == Working Agent: Senior Research Assistant
2
+
3
+ > Entering new CrewAgentExecutor chain...
4
+ I need to start by searching for the latest advancements in AI Agents in May 2024 to conduct a comprehensive analysis.
5
+
6
+ Action: Search the internet
7
+ Action Input: {"search_query": "latest advancements in AI Agents May 2024"}
8
+
9
+ Search results: Title: Agents of Change: Navigating the Rise of AI Agents in 2024
10
+ Link: https://dev.to/get_pieces/agents-of-change-navigating-the-rise-of-ai-agents-in-2024-143a
11
+ Snippet: In recent weeks, Google has unveiled significant advancements in AI development with the introduction of Google AI Studio and Vertex AI. These ...
12
+ ---
13
+ Title: How 2024 Will Be A.I.'s 'Leap Forward' - The New York Times
14
+ Link: https://www.nytimes.com/2024/01/08/technology/ai-robots-chatbots-2024.html
15
+ Snippet: A.I. is set to advance at a rapid rate, becoming more powerful and spreading into the physical world.
16
+ ---
17
+ Title: AI agents may improve underwriting process, close talent gaps
18
+ Link: https://www.propertycasualty360.com/2024/03/29/ai-agents-may-improve-underwriting-process-close-talent-gaps/
19
+ Snippet: Underwriters train AI agents to think like them, teaching the software to perform menial tasks, then larger projects.
20
+ ---
21
+ Title: Latest Trends in Agentic AI (AI Agents) | by Slava Kurilyak | Produvia
22
+ Link: https://medium.com/produvia/latest-trends-in-agentic-ai-ai-agents-2ab60d37fdb4
23
+ Snippet: Another trend in agentic AI is the advancement of multimedia capabilities, particularly in video generation. The HAI highlights the hope for ...
24
+ ---
25
+ Title: The explosion of AI Agents in 2024-2026 - LinkedIn
26
+ Link: https://www.linkedin.com/pulse/explosion-ai-agents-2024-2026-frank-frisby-mfgle
27
+ Snippet: While this timeline might seem ambitious, the rapid advancements in AI over the past few years suggest that such progress is not only possible ...
28
+ ---
29
+ Title: The power of AI agents in 2024: Transforming our world
30
+ Link: https://digileaders.com/the-power-of-ai-agents-in-2024-transforming-our-world/
31
+ Snippet: Summary. In 2024, AI Agents are proving to be more than just digital assistants; they are catalysts for transformative change across industries ...
32
+ ---
33
+ Title: Top 5 AI Trends to Watch in 2024 - TechRepublic
34
+ Link: https://www.techrepublic.com/article/top-ai-trends/
35
+ Snippet: Generative AI is finding its niches within business in 2024, with multimodal models providing new capabilities. At the same time, artists glaze ...
36
+ ---
37
+ Title: 10 top AI and machine learning trends for 2024 | TechTarget
38
+ Link: https://www.techtarget.com/searchenterpriseai/tip/9-top-AI-and-machine-learning-trends
39
+ Snippet: Discover the top 10 machine learning and AI trends for 2024 that are shaping technology and business, including multimodal, open source and ...
40
+ ---
41
+ Title: A Look at the Key Trends in Artificial Intelligence for 2024
42
+ Link: https://softwaremind.com/blog/a-look-at-the-key-trends-in-artificial-intelligence-for-2024/
43
+ Snippet: With the next phase of the AI evolution resonating over various industries, let's look at the pivotal trends in AI worth following in 2024.
44
+ ---
45
+
46
+ Final Answer:
47
+
48
+ - Google has introduced significant advancements in AI development with the launch of Google AI Studio and Vertex AI.
49
+ - AI is expected to advance rapidly, becoming more powerful and expanding into the physical world.
50
+ - AI agents are being utilized to improve the underwriting process and bridge talent gaps in various industries.
51
+ - Agentic AI is seeing advancements in multimedia capabilities, particularly in video generation.
52
+ - The year 2024 is witnessing an explosion of AI agents, with rapid advancements suggesting significant progress.
53
+ - AI agents are not just digital assistants but catalysts for transformative change across industries.
54
+ - Generative AI and multimodal models are gaining traction in businesses in 2024.
55
+ - The top 10 machine learning and AI trends for 2024 include multimodal, open source, and other key technologies.
56
+ - Various industries are experiencing pivotal AI trends that are shaping technology and business in 2024.
57
+
58
+ > Finished chain.
59
+ [DEBUG]: == [Senior Research Assistant] Task output: - Google has introduced significant advancements in AI development with the launch of Google AI Studio and Vertex AI.
60
+ - AI is expected to advance rapidly, becoming more powerful and expanding into the physical world.
61
+ - AI agents are being utilized to improve the underwriting process and bridge talent gaps in various industries.
62
+ - Agentic AI is seeing advancements in multimedia capabilities, particularly in video generation.
63
+ - The year 2024 is witnessing an explosion of AI agents, with rapid advancements suggesting significant progress.
64
+ - AI agents are not just digital assistants but catalysts for transformative change across industries.
65
+ - Generative AI and multimodal models are gaining traction in businesses in 2024.
66
+ - The top 10 machine learning and AI trends for 2024 include multimodal, open source, and other key technologies.
67
+ - Various industries are experiencing pivotal AI trends that are shaping technology and business in 2024.
68
+
69
+ [DEBUG]: == Working Agent: Professional Short-Article Writer
70
+
71
+ > Entering new CrewAgentExecutor chain...
72
+ I need to gather all the necessary information about the latest AI agent advancements to craft a compelling article for my tech-savvy audience.
73
+
74
+ Action: Delegate work to co-worker
75
+ Action Input: {"coworker": "Senior Research Assistant", "task": "Research the latest advancements in AI agents and provide detailed information", "context": "I need detailed insights on the most significant advancements in AI agents, including any recent developments, trends, and applications in various industries."}
76
+
77
+ > Entering new CrewAgentExecutor chain...
78
+ I need to search the internet for the latest advancements in AI agents to provide detailed insights to my coworker.
79
+
80
+ Action: Search the internet
81
+ Action Input: {"search_query": "latest advancements in AI agents"}
82
+
83
+ Search results: Title: AI Ascent 2024: Pioneering the Future of AI Agent Workflows and ...
84
+ Link: https://agentlayer.medium.com/ai-ascent-2024-pioneering-the-future-of-ai-agent-workflows-and-forecasting-ai-development-trends-93d1bf75f921
85
+ Snippet: The event highlighted the current state and future directions of AI, emphasizing that AI brings three transformative abilities β€” creativity, ...
86
+ ---
87
+ Title: The Dawn of AI Agents: Transforming Industries through Advanced ...
88
+ Link: https://www.linkedin.com/pulse/dawn-ai-agents-transforming-industries-through-advanced-samuel-odeh-od3ae
89
+ Snippet: The journey from traditional AI models to the sophisticated AI agents of today has been driven by significant advancements in machine learning ...
90
+ ---
91
+ Title: AI Agents Assemble For The Automation Revolution - Forbes
92
+ Link: https://www.forbes.com/sites/sylvainduranton/2023/12/07/ai-agents-assemble-for-the-automation-revolution/
93
+ Snippet: The recent step-change in AI opens new avenues for the development of artificial intelligence agents, independent programs or pieces of ...
94
+ ---
95
+ Title: Autonomous AI agents: A progress report | TechTarget
96
+ Link: https://www.techtarget.com/searchenterpriseai/feature/Autonomous-AI-agents-A-progress-report
97
+ Snippet: New advances in AI are bringing human-like intelligence and abilities to businesses. "We've watched AI evolve from performing singular tasks to ...
98
+ ---
99
+ Title: The Rise of AI Agents and the Evolution of Innovation in AgentLayer
100
+ Link: https://agentlayer.medium.com/the-rise-of-ai-agents-and-the-evolution-of-innovation-in-agentlayer-c1a2786e406a
101
+ Snippet: With technology evolving rapidly, the development of AI Agents reflects diverse trends. Notably, Autonomous Agents and Generative Agents have ...
102
+ ---
103
+ Title: AI Agents: The Next Era of Artificial Intelligence - LinkedIn
104
+ Link: https://www.linkedin.com/pulse/ai-agents-next-era-artificial-intelligence-green-node-vv8nc
105
+ Snippet: Drawing connections, it becomes evident that AI Agents represent a pivotal advancement in Generative AI, propelling us toward the coveted realm ...
106
+ ---
107
+ Title: Forget Chatbots. AI Agents Are the Future - WIRED
108
+ Link: https://www.wired.com/story/fast-forward-forget-chatbots-ai-agents-are-the-future/
109
+ Snippet: The breakthroughs and innovations that we uncover lead to new ways of thinking, new connections, and new industries. More From WIRED.
110
+ ---
111
+ Title: The Future is Here - How AI Agents Will Transform Work
112
+ Link: https://promptengineering.org/the-rise-of-ai-agents-navigating-the-future-of-autonomous-software/
113
+ Snippet: AI agents are transforming work across industries through advanced language models and automation. This article explores their capabilities, ...
114
+ ---
115
+ Title: A Guide to AI Agents | Symbl.ai
116
+ Link: https://symbl.ai/developers/blog/a-guide-to-ai-agents/
117
+ Snippet: To finish, let us briefly explore a few of the likely advancements and trajectories of AI agents as we head into the future. Increased ...
118
+ ---
119
+
120
+ Final Answer:
121
+
122
+ Based on my research, here are some of the latest advancements in AI agents:
123
+
124
+ 1. AI Ascent 2024: Pioneering the Future of AI Agent Workflows and Forecasting AI Development Trends
125
+ The event highlighted the current state and future directions of AI, emphasizing that AI brings three transformative abilities β€” creativity.
126
+
127
+ 2. The Dawn of AI Agents: Transforming Industries through Advanced Technology
128
+ The journey from traditional AI models to the sophisticated AI agents of today has been driven by significant advancements in machine learning.
129
+
130
+ 3. AI Agents Assemble For The Automation Revolution - Forbes
131
+ The recent step-change in AI opens new avenues for the development of artificial intelligence agents, independent programs or pieces of.
132
+
133
+ 4. Autonomous AI agents: A progress report | TechTarget
134
+ New advances in AI are bringing human-like intelligence and abilities to businesses. "We've watched AI evolve from performing singular tasks to.
135
+
136
+ 5. The Rise of AI Agents and the Evolution of Innovation in AgentLayer
137
+ With technology evolving rapidly, the development of AI Agents reflects diverse trends. Notably, Autonomous Agents and Generative Agents have.
138
+
139
+ 6. AI Agents: The Next Era of Artificial Intelligence - LinkedIn
140
+ Drawing connections, it becomes evident that AI Agents represent a pivotal advancement in Generative AI, propelling us toward the coveted realm.
141
+
142
+ 7. Forget Chatbots. AI Agents Are the Future - WIRED
143
+ The breakthroughs and innovations that we uncover lead to new ways of thinking, new connections, and new industries.
144
+
145
+ 8. The Future is Here - How AI Agents Will Transform Work
146
+ AI agents are transforming work across industries through advanced language models and automation. This article explores their capabilities.
147
+
148
+ 9. A Guide to AI Agents | Symbl.ai
149
+ To finish, let us briefly explore a few of the likely advancements and trajectories of AI agents as we head into the future. Increased.
150
+
151
+ > Finished chain.
152
+
153
+ Based on my research, here are some of the latest advancements in AI agents:
154
+
155
+ 1. AI Ascent 2024: Pioneering the Future of AI Agent Workflows and Forecasting AI Development Trends
156
+ The event highlighted the current state and future directions of AI, emphasizing that AI brings three transformative abilities β€” creativity.
157
+
158
+ 2. The Dawn of AI Agents: Transforming Industries through Advanced Technology
159
+ The journey from traditional AI models to the sophisticated AI agents of today has been driven by significant advancements in machine learning.
160
+
161
+ 3. AI Agents Assemble For The Automation Revolution - Forbes
162
+ The recent step-change in AI opens new avenues for the development of artificial intelligence agents, independent programs or pieces of.
163
+
164
+ 4. Autonomous AI agents: A progress report | TechTarget
165
+ New advances in AI are bringing human-like intelligence and abilities to businesses. "We've watched AI evolve from performing singular tasks to.
166
+
167
+ 5. The Rise of AI Agents and the Evolution of Innovation in AgentLayer
168
+ With technology evolving rapidly, the development of AI Agents reflects diverse trends. Notably, Autonomous Agents and Generative Agents have.
169
+
170
+ 6. AI Agents: The Next Era of Artificial Intelligence - LinkedIn
171
+ Drawing connections, it becomes evident that AI Agents represent a pivotal advancement in Generative AI, propelling us toward the coveted realm.
172
+
173
+ 7. Forget Chatbots. AI Agents Are the Future - WIRED
174
+ The breakthroughs and innovations that we uncover lead to new ways of thinking, new connections, and new industries.
175
+
176
+ 8. The Future is Here - How AI Agents Will Transform Work
177
+ AI agents are transforming work across industries through advanced language models and automation. This article explores their capabilities.
178
+
179
+ 9. A Guide to AI Agents | Symbl.ai
180
+ To finish, let us briefly explore a few of the likely advancements and trajectories of AI agents as we head into the future. Increased.
181
+
182
+ Final Answer: AI agents have become a driving force in the technological landscape, with advancements in machine learning and artificial
183
+ intelligence shaping the way industries operate. Google's introduction of Google AI Studio and Vertex AI has paved the way for
184
+ significant developments in AI, propelling the field forward. The year 2024 is witnessing a surge in AI agents, with rapid progress
185
+ suggesting a future where these agents play a pivotal role in transforming industries. From multimedia capabilities to video generation,
186
+ AI agents are expanding their reach and capabilities, becoming catalysts for change across various sectors. The shift towards generative
187
+ AI and multimodal models is gaining traction in businesses, offering innovative solutions to complex problems. These advancements are
188
+ not just limited to digital assistants but are revolutionizing workflows and forecasting trends in AI development. As AI continues to
189
+ advance rapidly, the potential for AI agents to revolutionize industries and bridge talent gaps is becoming increasingly apparent.
190
+ The evolution of AI agents represents a significant leap forward in artificial intelligence, ushering in a new era of innovation and
191
+ transformative change. With the top 10 machine learning and AI trends for 2024 focusing on multimodal and open-source technologies,
192
+ the future looks promising for AI agents as they continue to shape technology and business landscapes.
193
+
194
+ > Finished chain.
195
+ [DEBUG]: == [Professional Short-Article Writer] Task output: AI agents have become a driving force in the technological landscape,
196
+ with advancements in machine learning and artificial intelligence shaping the way industries operate. Google's introduction of Google
197
+ AI Studio and Vertex AI has paved the way for significant developments in AI, propelling the field forward. The year 2024 is witnessing
198
+ a surge in AI agents, with rapid progress suggesting a future where these agents play a pivotal role in transforming industries.
199
+ From multimedia capabilities to video generation, AI agents are expanding their reach and capabilities, becoming catalysts for change
200
+ across various sectors. The shift towards generative AI and multimodal models is gaining traction in businesses, offering innovative
201
+ solutions to complex problems. These advancements are not just limited to digital assistants but are revolutionizing workflows and
202
+ forecasting trends in AI development. As AI continues to advance rapidly, the potential for AI agents to revolutionize industries and
203
+ bridge talent gaps is becoming increasingly apparent. The evolution of AI agents represents a significant leap forward in artificial
204
+ intelligence, ushering in a new era of innovation and transformative change. With the top 10 machine learning and AI trends for 2024
205
+ focusing on multimodal and open-source technologies, the future looks promising for AI agents as they continue to shape technology and
206
+ business landscapes.
207
+
208
+ ####
209
+ AI agents have become a driving force in the technological landscape, with advancements in machine learning and artificial intelligence
210
+ shaping the way industries operate. Google's introduction of Google AI Studio and Vertex AI has paved the way for significant
211
+ developments in AI, propelling the field forward. The year 2024 is witnessing a surge in AI agents, with rapid progress suggesting a
212
+ future where these agents play a pivotal role in transforming industries. From multimedia capabilities to video generation, AI agents
213
+ are expanding their reach and capabilities, becoming catalysts for change across various sectors. The shift towards generative AI and
214
+ multimodal models is gaining traction in businesses, offering innovative solutions to complex problems. These advancements are not just
215
+ limited to digital assistants but are revolutionizing workflows and forecasting trends in AI development. As AI continues to advance
216
+ rapidly, the potential for AI agents to revolutionize industries and bridge talent gaps is becoming increasingly apparent.
217
+ The evolution of AI agents represents a significant leap forward in artificial intelligence, ushering in a new era of innovation and
218
+ transformative change. With the top 10 machine learning and AI trends for 2024 focusing on multimodal and open-source technologies,
219
+ the future looks promising for AI agents as they continue to shape technology and business landscapes.
poetry.lock ADDED
The diff for this file is too large to render. See raw diff
 
pyproject.toml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [tool.poetry]
2
+ name = "crewai-basics"
3
+ version = "0.1.0"
4
+ description = "Simple ai research"
5
+ authors = ["Joao Moura, Z"]
6
+
7
+ [tool.poetry.dependencies]
8
+ python = ">=3.10,<=3.13"
9
+ crewai = "0.28.6"
10
+ crewai-tools = "0.1.6"
11
+ python-dotenv = "1.0.0"
12
+ langchain-openai = "^0.0.5"
13
+
14
+ [tool.poetry.extras]
15
+ tools = ["crewai-tools"]
16
+
17
+ [tool.pyright]
18
+ # https://github.com/microsoft/pyright/blob/main/docs/configuration.md
19
+ useLibraryCodeForTypes = true
20
+ exclude = [".cache"]
21
+
22
+ [tool.ruff]
23
+ # https://beta.ruff.rs/docs/configuration/
24
+ select = ['E', 'W', 'F', 'I', 'B', 'C4', 'ARG', 'SIM']
25
+ ignore = ['W291', 'W292', 'W293']
26
+
27
+ [build-system]
28
+ requires = ["poetry-core>=1.0.0"]
29
+ build-backend = "poetry.core.masonry.api"