Skip to content

Commit 1fb575f

Browse files
Support boolean tool args (#34208)
Support boolean tool arguments
1 parent 343c8cb commit 1fb575f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/transformers/agents/tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def validate_arguments(self):
138138
"inputs": Dict,
139139
"output_type": str,
140140
}
141-
authorized_types = ["string", "integer", "number", "image", "audio", "any"]
141+
authorized_types = ["string", "integer", "number", "image", "audio", "any", "boolean"]
142142

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

0 commit comments

Comments
 (0)