Skip to content

Update: deep_research/agent_deep_research to agentscope 2.x - #128

Open
Xiaoxu-Zhang wants to merge 1 commit into
agentscope-ai:mainfrom
Xiaoxu-Zhang:update/deep_research
Open

Update: deep_research/agent_deep_research to agentscope 2.x#128
Xiaoxu-Zhang wants to merge 1 commit into
agentscope-ai:mainfrom
Xiaoxu-Zhang:update/deep_research

Conversation

@Xiaoxu-Zhang

Copy link
Copy Markdown

📝 PR Type

  • Add new sample
  • Update existing sample
  • Add new test cases
  • Fix test failures
  • Documentation/Configuration update

📚 Description

  • Replace ReActAgent inheritance with standalone DeepResearchAgent
  • Substitute MCP client and tool registration with new Toolkit API
  • Migrate from view_text_file/write_text_file to Read/Write
  • Update message types from Msg/ToolUseBlock to new block system
  • Refactor async tool execution to use ToolResponse/ToolChunk
  • Bump agentscope dependency from >=1.0.5 to >=2.0.0
  • Remove obsolete utility functions for structured output generation

🧪 Testing Validation

Set up the Python environment with uv and configure the required API keys, then:

cd .../deep_research/agent_deep_research
uv run main.py

✅ Checklist

Please complete the following checks before submitting the PR:

  • All sample code has been formatted with pre-commit run --all-files
  • All new/modified test cases have passed (run pytest tests/)
  • Test coverage has not decreased (if applicable)
  • Sample code follows agentscope best practices (e.g., config management, logging)
  • Related documentation in agentscope-samples has been updated (e.g., README.md)

- Replace ReActAgent inheritance with standalone DeepResearchAgent
- Substitute MCP client and tool registration with new Toolkit API
- Migrate from `view_text_file`/`write_text_file` to `Read`/`Write`
- Update message types from `Msg`/`ToolUseBlock` to new block system
- Refactor async tool execution to use `ToolResponse`/`ToolChunk`
- Bump agentscope dependency from >=1.0.5 to >=2.0.0
- Remove obsolete utility functions for structured output generation
@Xiaoxu-Zhang
Xiaoxu-Zhang requested a review from a team July 10, 2026 02:26
@CLAassistant

CLAassistant commented Jul 10, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants