Skip to content

Commit d42edbf

Browse files
authored
Update single_agent.py
1 parent 6cfaae5 commit d42edbf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

unisonai/single_agent.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,10 @@ def unleash(self, task: str):
233233

234234
except TypeError as e:
235235
if ("missing 1 required positional argument: 'self'" in str(e) or
236-
"got multiple values for argument" in str(e)):
236+
"got multiple values for argument" in str(e) or
237+
"takes 0 positional arguments but 1 was given" in str(e)):
238+
# ---- END OF THE FIX ----
239+
237240
try:
238241
# --- Fallback execution path (unbound method) ---
239242
unbound_run_method = tool_instance.__class__._run

0 commit comments

Comments
 (0)