From de38fc21a0693ee7727d09ab1bfc609e90355998 Mon Sep 17 00:00:00 2001 From: Yuan Chai <350365422@qq.com> Date: Tue, 10 Dec 2024 20:00:39 +0800 Subject: [PATCH] fix changed 'reply' function call to use argument unpacking for improved argument handling in distributed code. --- 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", ()),