Skip to content

Conversation

@Luohh5
Copy link
Member

@Luohh5 Luohh5 commented Aug 18, 2025

name: Creating deep research agent as an example

Description

Creating deep research agent as an example

Core Components

deep_research_agent.py: The main agent class.
main.py: The main function to start the application with deep research agent.
README.md: The readme file.
utils.py: Additional functions for agent.
built_in_prompt/*.md: Detailed prompts for deep research agent.
built_in_prompt/promptmodule.py: Json schema for structure ourput.

Checklist

Please check the following items before code is ready to be reviewed.

  • All tests are passing
  • Docstrings are in Google style
  • Related documentation has been updated (e.g. links, examples, etc.)
  • Code is ready for review

@xieyxclack xieyxclack requested a review from DavdGao August 18, 2025 08:21
@xieyxclack xieyxclack added the Example Example related PR label Aug 18, 2025
@DavdGao DavdGao requested a review from Copilot August 18, 2025 09:43
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a comprehensive deep research agent implementation as an example within the AgentScope framework. The agent performs sophisticated multi-step research tasks by decomposing complex queries, conducting web searches, and generating detailed reports.

Key changes include:

  • Implementation of a DeepResearchAgent class with advanced research capabilities
  • Supporting utilities for web search result processing and prompt management
  • Structured data models for task decomposition and result formatting
  • Comprehensive prompt templates for various research phases

Reviewed Changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
deep_research_agent.py Main agent implementation extending ReActAgent with deep research capabilities
main.py Entry point demonstrating agent usage with DashScope model and Tavily search
utils.py Helper functions for prompt loading, search result truncation, and structured output
promptmodule.py Pydantic models defining structured output schemas for research tasks
prompt_*.md Detailed prompt templates for different research phases and tool usage
README.md Documentation explaining setup, usage, and configuration options

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@Luohh5 Luohh5 force-pushed the deepresearch_agent branch 2 times, most recently from b6fcc87 to 8933eed Compare August 18, 2025 10:35
@Luohh5 Luohh5 force-pushed the deepresearch_agent branch from 8933eed to 6deaa72 Compare August 19, 2025 02:29
Copy link
Member

@DavdGao DavdGao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good to me, and we should unifiy the planner module in broswer, deep research and meta planner agents in the future

@DavdGao DavdGao merged commit 0ee2d8e into agentscope-ai:main Aug 19, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Example Example related PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants