DeepResearchAgent
DeepResearch Agent
DeepResearchAgent
helps break down complex tasks into smaller steps,
using web scraping and other techniques to find the information you
need. Instead of handling everything at once, it tackles each part step
by step, making research easier and more efficient. Whether you’re
looking for specific details, gathering data, or just trying to solve a
tricky problem, this agent does the heavy lifting for you.
Installation
Note: DeepResearchAgent
is built on top of
Browser Use
, which
requires Python 3.11 or higher.
To get started with the DeepResearchAgent
agent, follow these steps:
-
Install AG2 with the
browser-use
extra:Note: If you have been using
autogen
orpyautogen
, all you need to do is upgrade it using:or
as
pyautogen
,autogen
, andag2
are aliases for the same PyPI package. -
Set up Playwright:
-
For running the code in Jupyter, use
nest_asyncio
to allow nested event loops.bash pip install nest_asyncio
You’re all set! Now you can start solving complex tasks.
Imports
Starting the Conversation
This code initializes DeepResearchAgent
and asks it to find out
What was the impact of DeepSeek on stock prices and why?
using
GPT-4o
.
Note: Models like
gpt-4o-mini
often don’t perform well enough for complex tasks.