From 1240b1c897115b6ddcf654ae5327f4d2b838f2f8 Mon Sep 17 00:00:00 2001 From: Ian Massingham Date: Mon, 16 Dec 2024 17:45:16 +0000 Subject: [PATCH] fix for [Docs] Sample code on file-manager-tool docs page is incorrect (#1448) --- docs/griptape-tools/official-tools/src/file_manager_tool_1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/griptape-tools/official-tools/src/file_manager_tool_1.py b/docs/griptape-tools/official-tools/src/file_manager_tool_1.py index 0b5596d2b..61552dbaa 100644 --- a/docs/griptape-tools/official-tools/src/file_manager_tool_1.py +++ b/docs/griptape-tools/official-tools/src/file_manager_tool_1.py @@ -13,7 +13,7 @@ filename = "sample1.txt" content = "This is the content of sample1.txt" -Path(filename).write_text(filename) +Path(filename).write_text(content) # Now, read content from the file 'sample1.txt' using the agent's command agent.run("Can you get me the sample1.txt file?")