We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bec1214 commit c98b2b3Copy full SHA for c98b2b3
agents/agents/tools/tool_base.py
@@ -92,7 +92,7 @@ def used_env_size(self):
92
def _validate_call_args(self, kwargs):
93
# TODO: raise error, return error message, or filter the invalid arguments, make it configurable. Currently, we just return the error message.
94
for arg in kwargs:
95
- if arg not in self.args:
+ if arg not in self.args and not (arg == "id" and self.is_stateful):
96
# raise ValueError(f"""Invalid argument "{arg}" for tool {self.name}.""")
97
result = f"""Invalid argument "{arg}" for tool {self.name}."""
98
return result
0 commit comments