ms-agent
ms-agent copied to clipboard
examples\agents\modelscopegpt_agent.ipynb 运行报错,找不到工具NotImplementedError
Initial Checks
- [X] I have searched GitHub for a duplicate issue and I'm sure this is something new
- [X] I have read and followed the docs & demos and still think this is a bug
- [X] I am confident that the issue is with modelscope-agent (not my code, or another library in the ecosystem)
What happened + What you expected to happen
demo示例examples\agents\modelscopegpt_agent.ipynb首次运行报错,找不到工具NotImplementedError,但再不重启kernel的情况下重新运行单元格则正常,个人怀疑是和tools的赖加载机制有关。
个人尝试把demo中的speech-generation换成其他modelscope下的工具名依然会发生以上错误,但是换成dashscope中的工具如image_gen等则不会发生以上错误
Versions / Dependencies
python 3.11.5 windows 11
Reproduction script
from modelscope_agent.agents import RolePlay
role_template = '你扮演一个讲故事机器人,你需要根据要求生成一个故事并且读出来'
llm_config = {
'model': 'qwen-turbo',
'model_server': 'dashscope',
}
function_list = ['speech-generation']
bot = RolePlay(function_list=function_list,llm=llm_config, instruction=role_template)
报错NotImplementedError,把speech-generation换成其他modelscope中的工具如image-chat也会发生相同错误,但是换成dashscope中的工具如image_gen则正常运行
Issue Severity
None
这个问题看起来还是没有解决啊
0.5.2 版本已经修复相关问题。