From 71440ac0d37e15dc33f6f01ad50f402084101550 Mon Sep 17 00:00:00 2001 From: zyzhang1130 <36942574+zyzhang1130@users.noreply.github.com> Date: Thu, 12 Sep 2024 13:08:30 +0800 Subject: [PATCH] Update react_agent.py --- src/agentscope/agents/react_agent.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/agentscope/agents/react_agent.py b/src/agentscope/agents/react_agent.py index 8c18d759f..e62867c9b 100644 --- a/src/agentscope/agents/react_agent.py +++ b/src/agentscope/agents/react_agent.py @@ -225,15 +225,15 @@ def _acting(self, function_call: dict) -> None: msg_execution_str = self.service_toolkit.parse_and_call_func( formatted_function_call, ) - + # Convert the string to a Msg object msg_execution = Msg( name="system", content=msg_execution_str, role="system", - echo=self.verbose + echo=self.verbose, ) - + if self.verbose: self.speak(msg_execution.content) self.memory.add(msg_execution) @@ -252,4 +252,4 @@ def finish(response: str) -> ServiceResponse: return ServiceResponse( status=ServiceExecStatus.SUCCESS, content=response, - ) \ No newline at end of file + )