Skip to content

Commit 1068ec9

Browse files
Update src/smolagents/tools.py
Co-authored-by: Albert Villanova del Moral <[email protected]>
1 parent f4c8f93 commit 1068ec9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/smolagents/tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def save(self, output_dir):
236236
237237
class {class_name}(Tool):
238238
name = {json.dumps(self.name)}
239-
description = {json.dumps(textwrap.dedent(self.description).strip())}
239+
description = """{self.description}"""
240240
inputs = {json.dumps(self.inputs, separators=(",", ":"))}
241241
output_type = {json.dumps(self.output_type)}
242242
"""

0 commit comments

Comments
 (0)