From 6a7e917e1d9bd766945b390a07d1ccd9927a4c29 Mon Sep 17 00:00:00 2001 From: Adan Butto Date: Tue, 22 Oct 2024 18:47:52 +0300 Subject: [PATCH] Changed order of the arguments, placing 'content' last. It tends to forget context when it gets to filling other arguments when content is on the longer side. --- src/crewai_tools/tools/file_writer_tool/file_writer_tool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/crewai_tools/tools/file_writer_tool/file_writer_tool.py b/src/crewai_tools/tools/file_writer_tool/file_writer_tool.py index b3ca13c55..a008e4a75 100644 --- a/src/crewai_tools/tools/file_writer_tool/file_writer_tool.py +++ b/src/crewai_tools/tools/file_writer_tool/file_writer_tool.py @@ -6,10 +6,10 @@ from distutils.util import strtobool class FileWriterToolInput(BaseModel): - filename: str - content: str + filename: str directory: Optional[str] = "./" overwrite: str = "False" + content: str class FileWriterTool(BaseTool): name: str = "File Writer Tool"