Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ This is a repository that **brings together a variety of ready-to-run Python age
| | browser_use/browser_use_agent_pro | ✅ | ❌ | Advanced command-line Python browser agent using AgentScope |
| | browser_use/browser_use_fullstack_runtime | ✅ | ✅ | Full-stack browser automation with UI & sandbox |
| **Deep Research** | deep_research/agent_deep_research | ✅ | ❌ | Multi-agent research pipeline |
| | deep_research/agent_qwen_deep_research | ✅ | ❌ | Simplified deep research agent |
| | deep_research/qwen_langgraph_search_fullstack_runtime | ❌ | ✅ | Full-stack deep research app |
| **Games** | games/game_werewolves | ✅ | ❌ | Multi-agent roleplay game |
| **Conversational Apps** | conversational_agents/chatbot_fullstack_runtime | ✅ | ✅ | Chatbot application with frontend/backend |
Expand Down
1 change: 1 addition & 0 deletions README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
| | browser_use/browser_use_agent_pro | ✅ | ❌ | 基于 AgentScope 的高级命令行浏览器智能体 |
| | browser_use/browser_use_fullstack_runtime | ✅ | ✅ | 带 UI 和沙盒环境的全栈浏览器自动化 |
| **深度研究** | deep_research/agent_deep_research | ✅ | ❌ | 多 Agent 研究流程 |
| | deep_research/agent_qwen_deep_research | ✅ | ❌ | 简化的深度研究代理 |
| | deep_research/qwen_langgraph_search_fullstack_runtime | ❌ | ✅ | 全栈运行时深度研究应用 |
| **游戏** | games/game_werewolves | ✅ | ❌ | 多 Agent 角色扮演推理游戏 |
| **对话应用** | conversational_agents/chatbot_fullstack_runtime | ✅ | ✅ | 带前端/后端的聊天机器人 |
Expand Down
29 changes: 29 additions & 0 deletions deep_research/agent_qwen_deep_research/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Deep Research Agent Example with Qwen-Deep-Research Model

This example shows an Agent implementation with **Qwen-Deep-Research** model using the AgentScope framework. It can break down complex problems, uses web searches to perform analysis, and generates research reports.

Reference: https://www.alibabacloud.com/help/en/model-studio/qwen-deep-research

## 🚀 Getting Started

### Prerequisites

- Python 3.10 or higher
- DashScope API key from [Alibaba Cloud](https://dashscope.console.aliyun.com/)

### Installation

```bash
pip install -r requirements.txt
```

### Usage

1. **Set Environment Variable**:
```bash
export DASHSCOPE_API_KEY="your_dashscope_api_key_here"
```
2. **Run the script**:
```bash
python main.py
```
51 changes: 51 additions & 0 deletions deep_research/agent_qwen_deep_research/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# -*- coding: utf-8 -*-
"""The main entry point of the Qwen Deep Research agent example."""
import asyncio

from qwen_deep_research_agent import QwenDeepResearchAgent
from agentscope import logger
from agentscope.message import Msg


async def main() -> None:
"""The main entry point for the Qwen Deep Research agent example."""
# Create DeepResearch Agent
researcher = QwenDeepResearchAgent(
name="Researcher Qwen",
verbose=True,
)

# Step 1: Model follow-up question for confirmation
# The model analyzes the user's question
# and asks follow-up questions to clarify the research direction.
user_msg = Msg(
name="User",
content="Research the applications of artificial intelligence in "
"education",
role="user",
)

clarification = await researcher(user_msg)
print(f"\n{clarification.name}: {clarification.content}\n")

# Step 2: Deep research
# Based on the content of the follow-up question in Step 1,
# the model executes the complete research process.
user_response = Msg(
name="User",
content="I am mainly interested in personalized learning and "
"intelligent assessment.",
role="user",
)

research_result = await researcher(user_response)
print(f"\n{research_result.name}: {research_result.content}\n")

print("\n✅ Research complete!\n")


if __name__ == "__main__":
try:
asyncio.run(main())
except Exception as e:
logger.exception(e)
Loading