modelscope / agentscope

Start building LLM-empowered multi-agent applications in an easier way.
https://doc.agentscope.io/
Apache License 2.0
5.2k stars 317 forks source link

React agent msg_execution fix #439

Closed zyzhang1130 closed 1 month ago

zyzhang1130 commented 1 month ago

name: Pull Request about: Create a pull request

Description

self.service_toolkit.parse_and_call_func( formatted_function_call, ) returns a string, which cannot be directly added to self.memory (https://github.com/modelscope/agentscope/blob/bfaf9ed578e8eb34255163dabc9096aa122c5112/src/agentscope/agents/react_agent.py#L225). The fix wraps msg_execution to make it a Msg object.

Checklist

Please check the following items before code is ready to be reviewed.

zyzhang1130 commented 1 month ago

The latest version already fixed this issue.