Skip to content

Commit

Permalink
Support boolean tool args (#34208)
Browse files Browse the repository at this point in the history
Support boolean tool arguments
  • Loading branch information
aymeric-roucher authored Oct 23, 2024
1 parent 343c8cb commit 1fb575f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/agents/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def validate_arguments(self):
"inputs": Dict,
"output_type": str,
}
authorized_types = ["string", "integer", "number", "image", "audio", "any"]
authorized_types = ["string", "integer", "number", "image", "audio", "any", "boolean"]

for attr, expected_type in required_attributes.items():
attr_value = getattr(self, attr, None)
Expand Down

0 comments on commit 1fb575f

Please sign in to comment.