Skip to content

Commit

Permalink
fix changed 'reply' function call to use argument unpacking for impro…
Browse files Browse the repository at this point in the history
…ved argument handling in distributed code. (#500)
  • Loading branch information
nauyiahc authored Dec 10, 2024
1 parent daa79e7 commit ceaf899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/agentscope/server/servicer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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", ()),
Expand Down

0 comments on commit ceaf899

Please sign in to comment.