mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-07-01 13:18:10 +00:00
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.
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user