添加 MemTool 风格的动态工具管理示例
AgentScope Version
1.0.2
Description
- 实现了一个受 MemTool 启发的工作流示例,在 AgentScope 中进行确定性地修剪 -> 搜索 -> 使用精选工具集执行任务
- 演示了自主代理模式,代理可以在其推理循环中搜索和删除工具
- 包含 Orchestrator、ToolManager 和 Worker 三个组件
- 提供了简单易用的接口,允许用户设置代理的领域专长和工具记忆预算
- 示例展示了如何根据用户查询动态选择和使用工具,以及如何在自主模式下管理工具集
Checklist
Please check the following items before code is ready to be reviewed.
- [x] Code has been formatted with
pre-commit run --all-filescommand - [x] All tests are passing
- [x] Docstrings are in Google style
- [x] Related documentation has been updated (e.g. links, examples, etc.)
- [x] Code is ready for review
@EidosL Thank you for your contribution! However, the changes seem quite extensive and don't align well with the PR title. Could we perhaps start with a smaller, focused example that directly addresses the issue mentioned in the title?
This PR is marked as stale because there has been no activity for 30 days. Remove stale label or add new comments or this PR will be closed in 5 day.
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.