From ceaf899339ce6ad421a4b5df85e009ae4738d5e5 Mon Sep 17 00:00:00 2001 From: Yuan Chai <350365422@qq.com> Date: Tue, 10 Dec 2024 20:42:24 +0800 Subject: [PATCH] fix changed 'reply' function call to use argument unpacking for improved argument handling in distributed code. (#500) --- src/agentscope/server/servicer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", ()),