diff --git a/src/agentscope/server/servicer.py b/src/agentscope/server/servicer.py index 9ce5c9cef..265a16f64 100644 --- a/src/agentscope/server/servicer.py +++ b/src/agentscope/server/servicer.py @@ -483,7 +483,7 @@ def _process_task( args = args.result() # pylint: disable=W0212 try: if target_func == "reply": - result = getattr(agent, target_func)(args) + result = getattr(agent, target_func)(*args.get("args", ())) else: result = getattr(agent, target_func)( *args.get("args", ()),