From c17da4e3ade6a18c009038517c8de2d7a881540e Mon Sep 17 00:00:00 2001 From: theCyberTech Date: Sun, 28 Jun 2026 13:25:15 +0800 Subject: [PATCH] docs(file-writer): use public .run() in example, not _run() _run is the internal entrypoint; the public API is .run(). Update the example so readers aren't shown calling a private method. --- docs/edge/en/tools/file-document/filewritetool.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/edge/en/tools/file-document/filewritetool.mdx b/docs/edge/en/tools/file-document/filewritetool.mdx index 16c645513..7032f7072 100644 --- a/docs/edge/en/tools/file-document/filewritetool.mdx +++ b/docs/edge/en/tools/file-document/filewritetool.mdx @@ -37,8 +37,8 @@ from crewai_tools import FileWriterTool # Initialize the tool file_writer_tool = FileWriterTool() -# Write content to a file in a specified directory (keyword arguments) -result = file_writer_tool._run( +# Write content to a file in a specified directory +result = file_writer_tool.run( filename='example.txt', content='This is a test content.', directory='test_directory',