Skip to content

Commit c98b2b3

Browse files
committed
fix bug
1 parent bec1214 commit c98b2b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agents/agents/tools/tool_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def used_env_size(self):
9292
def _validate_call_args(self, kwargs):
9393
# TODO: raise error, return error message, or filter the invalid arguments, make it configurable. Currently, we just return the error message.
9494
for arg in kwargs:
95-
if arg not in self.args:
95+
if arg not in self.args and not (arg == "id" and self.is_stateful):
9696
# raise ValueError(f"""Invalid argument "{arg}" for tool {self.name}.""")
9797
result = f"""Invalid argument "{arg}" for tool {self.name}."""
9898
return result

0 commit comments

Comments
 (0)