modelscope-agent
modelscope-agent copied to clipboard
[callback,agent] enable_no_stream_callback 永远不会触发,因为RolePlay返回的response永远是生成器
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
Versions / Dependencies
最新版
Reproduction script
如上
Issue Severity
None
- 是否应该仿照BaseChatModel的chat方法,在Agent基类将run方法分为_run_stream,_run_no_stream. 这样所有agent似乎都要改动
- 还是仅仅在roleplay这个agent下区分
- 亦或者有什么更优雅的方法解决这个问题