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
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.
from autogen import LLMConfigllm_config = LLMConfig( config_list=[{"api_type": "openai", "model": "gpt-4o", "api_key": os.environ["OPENAI_API_KEY"]}],)with llm_config: agent = DeepResearchAgent(name="DeepResearchAgent")message = "What was the impact of DeepSeek on stock prices and why?"result = agent.run( message=message, tools=agent.tools, max_turns=2, user_input=False, summary_method="reflection_with_llm",)result.process()print(result.summary)
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:
The investigation into the impact of DeepSeek on stock prices reveals several key insights:1. **DeepSeek's Role and Functionality:** - DeepSeek is a renowned Chinese AI company, known for its cutting-edge, open-source language models that compete with those of major U.S. tech giants. The models offer significant advancements in reasoning and optimization of tasks requiring logical inference and problem-solving, utilizing methods such as "Chain of Thought" and reinforcement learning.2. **Impact on Stock Prices:** - The introduction and application of DeepSeek have led to significant repercussions in stock markets. The tech industry experienced a selloff, notably impacting companies like Nvidia, with stock valuations decreasing markedly—from 50 times to 36 times estimated earnings. Major indexes, including Nasdaq and S&P 500, faced declines of 3.1% and 1.5%, respectively.3. **Factors behind the Changes in Stock Prices:** - The shifts in stock prices are attributed to several factors: - **Technological Advancements:** DeepSeek's technological breakthroughs have triggered notable market changes. - **Impact on Major Tech Companies:** There have been significant market-cap losses for companies like Nvidia due to concerns about competition from DeepSeek. - **Market Volatility:** Concerns over Chinese AI enhancements have induced market-wide volatility. - **Investment Opportunities:** DeepSeek's advancements have sparked interest in investing in undervalued Chinese AI stocks, indicating potential growth areas. - **Financial Market Reactions:** The rapid changes induced by DeepSeek's developments have caused noticeable financial market fluctuations, particularly affecting Wall Street.Overall, DeepSeek's emergence has profoundly influenced stock prices by fostering both immediate market anxiety and potential long-term investment opportunities.Reasoning: The answer comprehensively covers the impact of DeepSeek on stock prices and the reasons behind these changes. It is well-structured, providing a clear understanding of DeepSeek's functions, its effects on the stock market, and the underlying factors contributing to these effects. Each aspect of the investigation aligns with the subquestions previously addressed, ensuring completeness and coherence. Thus, this summary effectively communicates the investigation's findings.
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"AG2","colors":{"primary":"#4b9cd6","light":"#63a9db","dark":"#338fd1"},"favicon":"/logo/favicon.svg","logo":{"light":"https://mintcdn.com/private-04b27de1/pvm3Z7mIWzwbwn7q/logo/ag2.svg?fit=max\u0026auto=format\u0026n=pvm3Z7mIWzwbwn7q\u0026q=85\u0026s=7e064e1c72768237baa4e260a7828dfe","dark":"https://mintcdn.com/private-04b27de1/pvm3Z7mIWzwbwn7q/logo/ag2-white.svg?fit=max\u0026auto=format\u0026n=pvm3Z7mIWzwbwn7q\u0026q=85\u0026s=5f3c0db50d8f566bd4448ae232799a59"},"navbar":{"primary":{"type":"github","href":"https://github.com/ag2ai/ag2"}},"search":{"prompt":"Search or ask..."},"seo":{"metatags":{"og:image":"https://media.githubusercontent.com/media/ag2ai/ag2/refs/heads/main/website/static/img/cover.png"},"indexing":"navigable"},"footer":{"socials":{"x":"https://x.com/ag2oss","github":"https://github.com/ag2ai/ag2","linkedin":"https://www.linkedin.com/company/ag2ai","discord":"https://discord.gg/pAbnFJrkgZ","youtube":"https://www.youtube.com/@ag2ai"}},"integrations":{"ga4":{"measurementId":"G-2GN2KN2CE4"}},"fonts":{"heading":{"family":"Jersey 10"},"body":{"family":"Inter"}},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"private-04b27de1","hasAudioNarration":false,"actualSubdomain":"private-04b27de1","customDomains":[],"gitSource":{"type":"github","owner":"harishmohanraj","repo":"ag2","deployBranch":"mintlify-pages","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae9239d3e9b7a540d51da54:success","clientVersion":"0.0.4377","searchFilterCounts":[{"language":"default","tag":"API References","count":879},{"language":"default","tag":"API Reference","count":879},{"language":"default","tag":"autogen","count":879},{"language":"default","tag":"agentchat","count":358},{"language":"default","tag":"Use Cases","count":264},{"language":"default","tag":"contrib","count":228},{"language":"default","tag":"User Guide","count":171},{"language":"default","tag":"tools","count":137},{"language":"default","tag":"Notebooks","count":128},{"language":"default","tag":"oai","count":125}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[{"filePath":"mint-style.css","href":"/_mintlify/custom/private-04b27de1/8f3837c83da6c188/mint-style.css"}]}
{"page":{"pagePath":"docs/user-guide/reference-agents/deepresearchagent","slug":"/docs/user-guide/reference-agents/deepresearchagent","pageMetadata":{"title":"DeepResearchAgent","sidebarTitle":"DeepResearchAgent","description":null,"href":"/docs/user-guide/reference-agents/deepresearchagent"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Heading,Icon,OptimizedImage,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Icon)_missingMdxReference(`Icon`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(OptimizedImage,{src:`https://mintcdn.com/private-04b27de1/pvm3Z7mIWzwbwn7q/snippets/reference-agents/img/DeepResearchAgent.png?fit=max\u0026auto=format\u0026n=pvm3Z7mIWzwbwn7q\u0026q=85\u0026s=a3574d0c7dcfe8d82f79d18adb7c3dfa`,alt:`DeepResearchAgent workflow`,\"data-og-width\":`1920`,width:`1920`,\"data-og-height\":`1080`,height:`1080`,\"data-path\":`snippets/reference-agents/img/DeepResearchAgent.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/private-04b27de1/pvm3Z7mIWzwbwn7q/snippets/reference-agents/img/DeepResearchAgent.png?w=280\u0026fit=max\u0026auto=format\u0026n=pvm3Z7mIWzwbwn7q\u0026q=85\u0026s=43d121ecd15705745a5963e57925486e 280w, https://mintcdn.com/private-04b27de1/pvm3Z7mIWzwbwn7q/snippets/reference-agents/img/DeepResearchAgent.png?w=560\u0026fit=max\u0026auto=format\u0026n=pvm3Z7mIWzwbwn7q\u0026q=85\u0026s=0c42d1d5c92ff93b022ddd48a5ebe1e4 560w, https://mintcdn.com/private-04b27de1/pvm3Z7mIWzwbwn7q/snippets/reference-agents/img/DeepResearchAgent.png?w=840\u0026fit=max\u0026auto=format\u0026n=pvm3Z7mIWzwbwn7q\u0026q=85\u0026s=016262c4ef73632899f18f988c662c36 840w, https://mintcdn.com/private-04b27de1/pvm3Z7mIWzwbwn7q/snippets/reference-agents/img/DeepResearchAgent.png?w=1100\u0026fit=max\u0026auto=format\u0026n=pvm3Z7mIWzwbwn7q\u0026q=85\u0026s=7abfdbcb5a4961efa4854b436de03dae 1100w, https://mintcdn.com/private-04b27de1/pvm3Z7mIWzwbwn7q/snippets/reference-agents/img/DeepResearchAgent.png?w=1650\u0026fit=max\u0026auto=format\u0026n=pvm3Z7mIWzwbwn7q\u0026q=85\u0026s=1ca4b2f392f75b6d3b67204a16d9de49 1650w, https://mintcdn.com/private-04b27de1/pvm3Z7mIWzwbwn7q/snippets/reference-agents/img/DeepResearchAgent.png?w=2500\u0026fit=max\u0026auto=format\u0026n=pvm3Z7mIWzwbwn7q\u0026q=85\u0026s=b413ed6ac586217f27390b27b1401098 2500w`}),`\n`,_jsxs(_components.p,{children:[`We are excited to unveil `,_jsx(_components.a,{href:`/docs/api-reference/autogen/agents/experimental/DeepResearchAgent`,children:_jsx(_components.code,{children:`DeepResearchAgent`})}),`, a powerful autonomous research capability within our `,_jsx(_components.strong,{children:`AG2`}),` framework. Inspired by `,_jsx(_components.a,{href:`https://openai.com/index/introducing-deep-research`,children:`OpenAI’s Deep Research`}),`, our agent is designed to tackle complex, multi-step research tasks efficiently, synthesizing insights from diverse online sources.`]}),`\n`,_jsxs(_components.p,{children:[`With `,_jsx(_components.a,{href:`/docs/api-reference/autogen/agents/experimental/DeepResearchAgent`,children:_jsx(_components.code,{children:`DeepResearchAgent`})}),`, we take a significant step toward the future of autonomous knowledge synthesis—freeing up valuable time and enabling deeper, data-driven decision-making`]}),`\n`,_jsx(Heading,{level:`2`,id:`installation`,children:`Installation`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.a,{href:`/docs/api-reference/autogen/agents/experimental/DeepResearchAgent`,children:_jsx(_components.code,{children:`DeepResearchAgent`})}),` is built on top of `,_jsx(_components.a,{href:`https://github.com/browser-use/browser-use`,children:_jsx(_components.code,{children:`Browser Use`})}),`, which requires `,_jsx(_components.strong,{children:`Python 3.11 or higher`}),`.`]})}),`\n`,_jsxs(_components.p,{children:[`To get started with the `,_jsx(_components.a,{href:`/docs/api-reference/autogen/agents/experimental/DeepResearchAgent`,children:_jsx(_components.code,{children:`DeepResearchAgent`})}),` agent, follow these steps:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Install AG2 with the `,_jsx(_components.code,{children:`browser-use`}),` extra:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pip`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -U`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ag2[openai,browser-use]`})]}),`\n`]})})}),`\n`,_jsxs(Tip,{children:[_jsxs(_components.p,{children:[`If you have been using `,_jsx(_components.code,{children:`autogen`}),` or `,_jsx(_components.code,{children:`ag2`}),`, all you need to do is upgrade it using:`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pip`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -U`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` autogen[openai,browser-use]`})]}),`\n`]})})}),_jsx(_components.p,{children:`or`}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pip`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -U`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ag2[openai,browser-use]`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`as `,_jsx(_components.code,{children:`autogen`}),` and `,_jsx(_components.code,{children:`ag2`}),` are aliases for the same PyPI package.`]})]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Set up Playwright:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Installs Playwright and browsers for all OS`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`playwright`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Additional command, mandatory for Linux only`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`playwright`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install-deps`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`For running the code in Jupyter, use `,_jsx(_components.code,{children:`nest_asyncio`}),` to allow nested event loops.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pip`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` nest_asyncio`})]}),`\n`]})})}),`\n`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`You’re all set! Now you can start solving complex tasks.`}),`\n`,_jsx(Heading,{level:`2`,id:`imports`,children:`Imports`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` os`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` nest_asyncio`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` autogen.agents.experimental `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` DeepResearchAgent`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`nest_asyncio.apply()`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`starting-the-conversation`,children:`Starting the Conversation`}),`\n`,_jsxs(_components.p,{children:[`This code initializes `,_jsx(_components.a,{href:`/docs/api-reference/autogen/agents/experimental/DeepResearchAgent`,children:_jsx(_components.code,{children:`DeepResearchAgent`})}),` and asks it to find out `,_jsx(_components.code,{children:`What was the impact of DeepSeek on stock prices and why?`}),` using `,_jsx(_components.code,{children:`GPT-4o`}),`.`]}),`\n`,_jsxs(Tip,{children:[_jsxs(_components.p,{children:[`We recommend using `,_jsx(_components.code,{children:`gpt-4o`})]}),_jsxs(_components.p,{children:[`Models like `,_jsx(_components.code,{children:`gpt-4o-mini`}),` often don’t perform well enough for complex tasks.`]})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`20`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`20`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` autogen `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` LLMConfig`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`llm_config `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` LLMConfig(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` config_list`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"api_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"openai\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gpt-4o\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"api_key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: os.environ[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"OPENAI_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]}],`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`with`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` llm_config:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` agent `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` DeepResearchAgent(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`name`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"DeepResearchAgent\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`message `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"What was the impact of DeepSeek on stock prices and why?\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`result `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` agent.run(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` message`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`message,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` tools`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`agent.tools,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` max_turns`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` user_input`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`False`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` summary_method`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"reflection_with_llm\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`result.process()`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(result.summary)`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`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:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`18`,language:`shellsession`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellsession`,children:_jsxs(_components.code,{language:`shellsession`,numberOfLines:`18`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`The investigation into the impact of DeepSeek on stock prices reveals several key insights:`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`1. **DeepSeek's Role and Functionality:**`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` - DeepSeek is a renowned Chinese AI company, known for its cutting-edge, open-source language models that compete with those of major U.S. tech giants. The models offer significant advancements in reasoning and optimization of tasks requiring logical inference and problem-solving, utilizing methods such as \"Chain of Thought\" and reinforcement learning.`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`2. **Impact on Stock Prices:**`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` - The introduction and application of DeepSeek have led to significant repercussions in stock markets. The tech industry experienced a selloff, notably impacting companies like Nvidia, with stock valuations decreasing markedly—from 50 times to 36 times estimated earnings. Major indexes, including Nasdaq and S\u0026P 500, faced declines of 3.1% and 1.5%, respectively.`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`3. **Factors behind the Changes in Stock Prices:**`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` - The shifts in stock prices are attributed to several factors:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` - **Technological Advancements:** DeepSeek's technological breakthroughs have triggered notable market changes.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` - **Impact on Major Tech Companies:** There have been significant market-cap losses for companies like Nvidia due to concerns about competition from DeepSeek.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` - **Market Volatility:** Concerns over Chinese AI enhancements have induced market-wide volatility.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` - **Investment Opportunities:** DeepSeek's advancements have sparked interest in investing in undervalued Chinese AI stocks, indicating potential growth areas.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` - **Financial Market Reactions:** The rapid changes induced by DeepSeek's developments have caused noticeable financial market fluctuations, particularly affecting Wall Street.`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`Overall, DeepSeek's emergence has profoundly influenced stock prices by fostering both immediate market anxiety and potential long-term investment opportunities.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`Reasoning: The answer comprehensively covers the impact of DeepSeek on stock prices and the reasons behind these changes. It is well-structured, providing a clear understanding of DeepSeek's functions, its effects on the stock market, and the underlying factors contributing to these effects. Each aspect of the investigation aligns with the subquestions previously addressed, ensuring completeness and coherence. Thus, this summary effectively communicates the investigation's findings.`})}),`\n`]})})}),`\n`,_jsx(`div`,{className:`edit-url-container`,children:_jsxs(`a`,{className:`edit-url`,href:`https://github.com/ag2ai/ag2/edit/main/website/docs/user-guide/reference-agents/deepresearchagent.mdx`,target:`_blank`,children:[_jsx(Icon,{icon:`pen`,iconType:`solid`,size:`13px`}),` Edit this page`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"DeepResearchAgent","sidebarTitle":"DeepResearchAgent","description":null,"href":"/docs/user-guide/reference-agents/deepresearchagent"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Installation","slug":"installation","depth":2,"children":[]},{"title":"Imports","slug":"imports","depth":2,"children":[]},{"title":"Starting the Conversation","slug":"starting-the-conversation","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/private-04b27de1/eb75e01a19010b3e/docusaurus.config.js","/_mintlify/custom/private-04b27de1/2750b385f6fad3d7/mint-app-gallery-deps.js","/_mintlify/custom/private-04b27de1/00d416e040b2eaa6/mint-script.js"],"subdomain":"private-04b27de1","siteName":"AG2","title":"DeepResearchAgent - AG2","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-07T04:58:48.712Z","originalFileLocation":"docs/user-guide/reference-agents/deepresearchagent.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"AG2\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/private-04b27de1/5PK9RLmJtXeBrawe/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/private-04b27de1/5PK9RLmJtXeBrawe/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/private-04b27de1/5PK9RLmJtXeBrawe/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/private-04b27de1/5PK9RLmJtXeBrawe/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/private-04b27de1/5PK9RLmJtXeBrawe/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/private-04b27de1/5PK9RLmJtXeBrawe/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/private-04b27de1/5PK9RLmJtXeBrawe/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/private-04b27de1/5PK9RLmJtXeBrawe/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/private-04b27de1/5PK9RLmJtXeBrawe/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"DeepResearchAgent - AG2\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"AG2\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://private-04b27de1.mintlify.app/docs/user-guide/reference-agents/deepresearchagent\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://media.githubusercontent.com/media/ag2ai/ag2/refs/heads/main/website/static/img/cover.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"DeepResearchAgent - AG2\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://media.githubusercontent.com/media/ag2ai/ag2/refs/heads/main/website/static/img/cover.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/private-04b27de1/5PK9RLmJtXeBrawe/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"AG2\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#4b9cd6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://private-04b27de1.mintlify.app/docs/user-guide/reference-agents/deepresearchagent\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/user-guide/reference-agents/deepresearchagent.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://private-04b27de1.mintlify.app/#organization\",\"name\":\"AG2\",\"url\":\"https://private-04b27de1.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/private-04b27de1/pvm3Z7mIWzwbwn7q/logo/ag2.svg?fit=max\u0026auto=format\u0026n=pvm3Z7mIWzwbwn7q\u0026q=85\u0026s=7e064e1c72768237baa4e260a7828dfe\"}},{\"@type\":\"WebSite\",\"@id\":\"https://private-04b27de1.mintlify.app#website\",\"name\":\"AG2\",\"url\":\"https://private-04b27de1.mintlify.app\",\"publisher\":{\"@id\":\"https://private-04b27de1.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://private-04b27de1.mintlify.app/docs/user-guide/reference-agents/deepresearchagent#webpage\",\"url\":\"https://private-04b27de1.mintlify.app/docs/user-guide/reference-agents/deepresearchagent\",\"name\":\"DeepResearchAgent\",\"dateModified\":\"2026-01-07T04:58:48.712Z\",\"isPartOf\":{\"@id\":\"https://private-04b27de1.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://private-04b27de1.mintlify.app/docs/user-guide/reference-agents/deepresearchagent#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://private-04b27de1.mintlify.app/docs/user-guide/reference-agents/deepresearchagent#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"User Guide\",\"item\":\"https://private-04b27de1.mintlify.app/docs/user-guide/basic-concepts/installing-ag2\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Reference Agents\",\"item\":\"https://private-04b27de1.mintlify.app/docs/user-guide/reference-agents\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"DeepResearchAgent\",\"item\":\"https://private-04b27de1.mintlify.app/docs/user-guide/reference-agents/deepresearchagent\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://private-04b27de1.mintlify.app/docs/user-guide/reference-agents/deepresearchagent#article\",\"headline\":\"DeepResearchAgent\",\"name\":\"DeepResearchAgent\",\"url\":\"https://private-04b27de1.mintlify.app/docs/user-guide/reference-agents/deepresearchagent\",\"mainEntityOfPage\":{\"@id\":\"https://private-04b27de1.mintlify.app/docs/user-guide/reference-agents/deepresearchagent#webpage\"},\"image\":\"https://media.githubusercontent.com/media/ag2ai/ag2/refs/heads/main/website/static/img/cover.png\",\"dateModified\":\"2026-01-07T04:58:48.712Z\",\"publisher\":{\"@id\":\"https://private-04b27de1.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://private-04b27de1.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"AG2\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"AG2\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/user-guide/reference-agents/deepresearchagent.md","siteName":"AG2","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/docs/quick-start"}]},{"tab":"User Guide","groups":[{"group":"User Guide","pages":[{"title":"Installing AG2","href":"/docs/user-guide/basic-concepts/installing-ag2"},{"group":"Basic Concepts","pages":[{"title":"LLM Configuration: Powering Agent Intelligence","sidebarTitle":"LLM Configuration: Powering Agent Intelligence","href":"/docs/user-guide/basic-concepts/llm-configuration"},{"title":"ConversableAgent: Building Intelligent Agents","sidebarTitle":"ConversableAgent: Building Intelligent Agents","href":"/docs/user-guide/basic-concepts/conversable-agent"},{"title":"Human in the Loop: Adding Human Oversight","sidebarTitle":"Human in the Loop: Adding Human Oversight","href":"/docs/user-guide/basic-concepts/human-in-the-loop"},{"title":"Agent Orchestration: Coordinating Multiple Agents","sidebarTitle":"Agent Orchestration: Coordinating Multiple Agents","href":"/docs/user-guide/basic-concepts/introducing-group-chat"},{"title":"Tools: Extending Agent Capabilities","sidebarTitle":"Tools: Extending Agent Capabilities","href":"/docs/user-guide/basic-concepts/introducing-tools"},{"title":"Structured Outputs: Ensuring Consistent Responses","sidebarTitle":"Structured Outputs: Ensuring Consistent Responses","href":"/docs/user-guide/basic-concepts/structured-outputs"}]},{"group":"Advanced Concepts","pages":[{"title":"LLM Config Deep-dive","href":"/docs/user-guide/advanced-concepts/llm-configuration-deep-dive"},{"group":"Agent Orchestration Deep Dive","pages":[{"title":"Orchestrating agents","sidebarTitle":"Overview","href":"/docs/user-guide/advanced-concepts/orchestration/orchestrations"},{"title":"Two-Agent Chat","href":"/docs/user-guide/advanced-concepts/orchestration/two-agent-chat"},{"title":null,"href":"/docs/user-guide/advanced-concepts/orchestration/sequential-chat"},{"title":null,"href":"/docs/user-guide/advanced-concepts/orchestration/nested-chat"},{"group":"Group Chats","pages":[{"sidebarTitle":"Overview","title":null,"href":"/docs/user-guide/advanced-concepts/orchestration/group-chat/introduction"},{"sidebarTitle":"Tools and Functions","title":null,"href":"/docs/user-guide/advanced-concepts/orchestration/group-chat/agent-tools-functions"},{"sidebarTitle":"Context Variables","title":null,"href":"/docs/user-guide/advanced-concepts/orchestration/group-chat/context-variables"},{"title":null,"href":"/docs/user-guide/advanced-concepts/orchestration/group-chat/handoffs"},{"sidebarTitle":"Orchestration Patterns","title":null,"href":"/docs/user-guide/advanced-concepts/orchestration/group-chat/patterns"}]},{"group":"Swarm","pages":[{"title":"Swarm deprecation","href":"/docs/user-guide/advanced-concepts/orchestration/swarm/deprecation"}]},{"title":"Ending a chat","href":"/docs/user-guide/advanced-concepts/orchestration/ending-a-chat"},{"group":"Pattern Cookbook","pages":[{"title":"Pattern Cookbook","sidebarTitle":"Overview","href":"/docs/user-guide/advanced-concepts/pattern-cookbook/overview"},{"title":"Context-Aware Routing","sidebarTitle":"Context-Aware Routing","href":"/docs/user-guide/advanced-concepts/pattern-cookbook/context_aware_routing"},{"title":"Escalation","href":"/docs/user-guide/advanced-concepts/pattern-cookbook/escalation"},{"title":"Feedback Loop","sidebarTitle":"Feedback Loop","href":"/docs/user-guide/advanced-concepts/pattern-cookbook/feedback_loop"},{"title":"Hierarchical / Tree","href":"/docs/user-guide/advanced-concepts/pattern-cookbook/hierarchical"},{"title":"Organic","href":"/docs/user-guide/advanced-concepts/pattern-cookbook/organic"},{"title":"Pipeline / Sequential Processing","sidebarTitle":"Pipeline / Sequential","href":"/docs/user-guide/advanced-concepts/pattern-cookbook/pipeline"},{"title":"Redundant","href":"/docs/user-guide/advanced-concepts/pattern-cookbook/redundant"},{"title":"Star / Hub-and-Spoke","href":"/docs/user-guide/advanced-concepts/pattern-cookbook/star"},{"title":"Triage with Tasks","sidebarTitle":"Triage with Tasks","href":"/docs/user-guide/advanced-concepts/pattern-cookbook/triage_with_tasks"}]}]},{"group":"Tools","pages":[{"sidebarTitle":"Tools","title":null,"href":"/docs/user-guide/advanced-concepts/tools/index"},{"title":"Overview","sidebarTitle":"Overview","href":"/docs/user-guide/advanced-concepts/tools/basics"},{"title":"Controlling Tool Use","sidebarTitle":"Controlling Use","href":"/docs/user-guide/advanced-concepts/tools/controlling-use"},{"title":"Tools with Secrets","href":"/docs/user-guide/advanced-concepts/tools/tools-with-secrets"},{"group":"Model Context Protocol","pages":[{"title":"MCP Clients","href":"/docs/user-guide/advanced-concepts/tools/mcp/client"}]},{"group":"Interoperability","pages":[{"title":"LangChain Tools Integration","sidebarTitle":"LangChain Tools Integration","href":"/docs/user-guide/advanced-concepts/tools/interop/langchain"},{"title":"CrewAI Tools Integration","sidebarTitle":"CrewAI Tools Integration","href":"/docs/user-guide/advanced-concepts/tools/interop/crewai"},{"title":"PydanticAI Tools Integration","sidebarTitle":"PydanticAI Tools Integration","href":"/docs/user-guide/advanced-concepts/tools/interop/pydanticai"}]}]},{"group":"RealtimeAgent","pages":[{"title":"Overview","href":"/docs/user-guide/advanced-concepts/realtime-agent/index"},{"title":"RealtimeAgent over WebSocket Audio Adapter","sidebarTitle":"WebSocket Audio Adapter","href":"/docs/user-guide/advanced-concepts/realtime-agent/websocket"},{"title":"RealtimeAgent over WebRTC","sidebarTitle":"WebRTC Integration","href":"/docs/user-guide/advanced-concepts/realtime-agent/webrtc"},{"title":"RealtimeAgent over Twilio Audio Adapter","sidebarTitle":"Twilio Audio Adapter","href":"/docs/user-guide/advanced-concepts/realtime-agent/twilio"}]},{"title":"RAG","href":"/docs/user-guide/advanced-concepts/rag"},{"title":"Code Execution","href":"/docs/user-guide/advanced-concepts/code-execution"}]},{"group":"Model Providers","pages":[{"title":"Amazon Bedrock","sidebarTitle":"Amazon Bedrock","href":"/docs/user-guide/models/amazon-bedrock"},{"title":"Anthropic","sidebarTitle":"Anthropic","href":"/docs/user-guide/models/anthropic"},{"title":"Cerebras","sidebarTitle":"Cerebras","href":"/docs/user-guide/models/cerebras"},{"title":"Cohere","sidebarTitle":"Cohere","href":"/docs/user-guide/models/cohere"},{"title":"DeepSeek","sidebarTitle":"DeepSeek","href":"/docs/user-guide/models/deepseek-v3"},{"title":"Google Gemini","sidebarTitle":"Google Gemini","href":"/docs/user-guide/models/google-gemini"},{"title":"Google Vertex AI","sidebarTitle":"Google Vertex AI","href":"/docs/user-guide/models/google-vertexai"},{"title":"Groq","sidebarTitle":"Groq","href":"/docs/user-guide/models/groq"},{"group":"LiteLLM Proxy Server","pages":[{"title":"Installation","sidebarTitle":"Installation","href":"/docs/user-guide/models/litellm-proxy-server/installation"},{"title":"LiteLLM with OpenAI","sidebarTitle":"LiteLLM with OpenAI","href":"/docs/user-guide/models/litellm-proxy-server/openai"},{"title":"LiteLLM with Azure","sidebarTitle":"LiteLLM with Azure","href":"/docs/user-guide/models/litellm-proxy-server/azure"},{"title":"LiteLLM with WatsonX","sidebarTitle":"LiteLLM with WatsonX","href":"/docs/user-guide/models/litellm-proxy-server/watsonx"}]},{"title":"LM Studio","sidebarTitle":"LM Studio","href":"/docs/user-guide/models/lm-studio"},{"title":"Mistral AI","sidebarTitle":"Mistral AI","href":"/docs/user-guide/models/mistralai"},{"title":"Ollama","sidebarTitle":"Ollama","href":"/docs/user-guide/models/ollama"},{"title":"OpenAI","sidebarTitle":"OpenAI","href":"/docs/user-guide/models/openai"},{"title":"Together AI","sidebarTitle":"Together AI","href":"/docs/user-guide/models/togetherai"},{"title":"vLLM","sidebarTitle":"vLLM","href":"/docs/user-guide/models/vLLM"}]},{"group":"Reference Agents","pages":[{"title":"Overview","href":"/docs/user-guide/reference-agents/index"},{"title":"CaptainAgent","sidebarTitle":"CaptainAgent","href":"/docs/user-guide/reference-agents/captainagent"},{"group":"Communication Platforms","pages":[{"title":"Communication Agents","sidebarTitle":"Overview","href":"/docs/user-guide/reference-agents/communication-platforms/overview"},{"title":"DiscordAgent","sidebarTitle":"DiscordAgent","href":"/docs/user-guide/reference-agents/communication-platforms/discordagent"},{"title":"SlackAgent","sidebarTitle":"SlackAgent","href":"/docs/user-guide/reference-agents/communication-platforms/slackagent"},{"title":"TelegramAgent","sidebarTitle":"TelegramAgent","href":"/docs/user-guide/reference-agents/communication-platforms/telegramagent"}]},{"title":"DocAgent","sidebarTitle":"DocAgent","href":"/docs/user-guide/reference-agents/docagent"},{"title":"DocAgent Performance","sidebarTitle":"DocAgent Performance","href":"/docs/user-guide/reference-agents/docagent-performance"},{"title":"ReasoningAgent","sidebarTitle":"ReasoningAgent","description":null,"href":"/docs/user-guide/reference-agents/reasoningagent"},{"title":"DeepResearchAgent","sidebarTitle":"DeepResearchAgent","href":"/docs/user-guide/reference-agents/deepresearchagent"},{"title":"WebSurferAgent","sidebarTitle":"WebSurferAgent","description":null,"href":"/docs/user-guide/reference-agents/websurferagent"},{"title":"WikipediaAgent","sidebarTitle":"WikipediaAgent","href":"/docs/user-guide/reference-agents/wikipediaagent"}]},{"group":"Reference Tools","pages":[{"title":"Overview","href":"/docs/user-guide/reference-tools/index"},{"group":"Google APIs","pages":[{"title":"YouTube Search Tool","href":"/docs/user-guide/reference-tools/google-api/youtube-search"},{"title":"Google Search Tool","href":"/docs/user-guide/reference-tools/google-api/google-search"},{"title":"Google Drive Tools","href":"/docs/user-guide/reference-tools/google-api/google-drive"}]},{"title":"Perplexity Search Tool","href":"/docs/user-guide/reference-tools/perplexity-search"},{"title":"Wikipedia Search Tools","href":"/docs/user-guide/reference-tools/wikipedia-search"},{"title":"Browser Use","href":"/docs/user-guide/reference-tools/browser-use"},{"title":"Deep Research","href":"/docs/user-guide/reference-tools/deep-research"},{"group":"Communication Platforms","pages":[{"title":"Discord Tools","href":"/docs/user-guide/reference-tools/communication-platforms/discord"},{"title":"Slack Tools","href":"/docs/user-guide/reference-tools/communication-platforms/slack"},{"title":"Telegram Tools","href":"/docs/user-guide/reference-tools/communication-platforms/telegram"}]},{"title":"Crawl4AI","sidebarTitle":"Crawl4AI","href":"/docs/user-guide/reference-tools/crawl4ai"}]}]}]},{"tab":"API References","pages":[{"title":"API References","href":"/docs/api-reference/autogen/overview"}]},{"tab":"Use Cases","pages":[{"title":"Use Cases","href":"/docs/use-cases/use-cases/customer-service"}]},{"tab":"User Stories","pages":[{"title":"User Stories","href":"/docs/user-stories/2025-04-30-Cegid-Pulse-OS"}]},{"tab":"Contribute","pages":[{"title":"Contribute","href":"/docs/contributor-guide/contributing"}]},{"tab":"FAQs","pages":[{"title":"FAQs","href":"/docs/faq/FAQ"}]},{"tab":"Ecosystem","pages":[{"title":"Ecosystem","href":"/docs/ecosystem/agentops"}]},{"tab":"Blog","pages":[{"title":"Blog","href":"/docs/blog/2025-05-07-AG2-Copilot-Integration"}]}]},"basePath":"","title":"DeepResearchAgent - AG2","deploymentId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","buildId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-DHIkV4p4.js","lightbox-handle-r17bVUz3.js"]}