We are excited to unveil DeepResearchAgent, a powerful autonomous research capability within our AG2 framework. Inspired by OpenAI’s Deep Research, our agent is designed to tackle complex, multi-step research tasks efficiently, synthesizing insights from diverse online sources.
With DeepResearchAgent, we take a significant step toward the future of autonomous knowledge synthesis—freeing up valuable time and enabling deeper, data-driven decision-making
Installation
To get started with the DeepResearchAgent agent, follow these steps:
-
Install AG2 with the
browser-use extra:
If you have been using autogen or ag2, all you need to do is upgrade it using:oras autogen and ag2 are aliases for the same PyPI package.
-
Set up Playwright:
-
For running the code in Jupyter, use
nest_asyncio to allow nested event loops.
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.
We recommend using gpt-4oModels like gpt-4o-mini often don’t perform well enough for complex tasks.
The agent will break down the initial task into smaller, manageable subtasks and tackle them sequentially. Once all subtasks are completed, a final summary will be generated, for example: