Skip to main contentü¶úÔ∏èüîó LangChainDocsUse casesIntegrationsAPICommunityChat our docsLangSmithJS/TS DocsSearchCTRLKProvidersAnthropicAWSGoogleMicrosoftOpenAIMoreComponentsLLMsChat modelsDocument loadersDocument transformersText embedding modelsVector storesRetrieversToolsAlpha VantageApifyArXivAWS LambdaShell (bash)Bearly Code InterpreterBing SearchBrave SearchChatGPT PluginsDall-E Image GeneratorDataForSeoDuckDuckGo SearchEden AIEleven Labs Text2SpeechFile SystemGolden QueryGoogle DriveGoogle PlacesGoogle SearchGoogle SerperGradioGraphQLHuggingFace Hub ToolsHuman as a toolIFTTT WebHooksLemon AgentMetaphor SearchNuclia UnderstandingOpenWeatherMapPubMedRequestsSceneXplainSearch ToolsSearchApiSearxNG SearchSerpAPITwilioWikipediaWolfram AlphaYahoo Finance NewsYouTubeZapier Natural Language ActionsAgents and toolkitsMemoryCallbacksChat loadersComponentsToolsFile SystemOn this pageFile SystemLangChain provides tools for interacting with a local file system out of the box. This notebook walks through some of them.Note: these tools are not recommended for use outside a sandboxed environment! First, we'll import the tools.from langchain.tools.file_management import (    ReadFileTool,    CopyFileTool,    DeleteFileTool,    MoveFileTool,    WriteFileTool,    ListDirectoryTool,)from langchain.agents.agent_toolkits import FileManagementToolkitfrom tempfile import TemporaryDirectory# We'll make a temporary directory to avoid clutterworking_directory = TemporaryDirectory()The FileManagementToolkit‚ÄãIf you want to provide all the file tooling to your agent, it's easy to do so with the toolkit. We'll pass the temporary directory in as a root directory as a workspace for the LLM.It's recommended to always pass in a root directory, since without one, it's easy for the LLM to pollute the working directory, and without one, there isn't any validation against
LangChain provides tools for interacting with a local file system out of the box. This notebook walks through some of them.
LangChain provides tools for interacting with a local file system out of the box. This notebook walks through some of them. ->: Skip to main contentü¶úÔ∏èüîó LangChainDocsUse casesIntegrationsAPICommunityChat our docsLangSmithJS/TS DocsSearchCTRLKProvidersAnthropicAWSGoogleMicrosoftOpenAIMoreComponentsLLMsChat modelsDocument loadersDocument transformersText embedding modelsVector storesRetrieversToolsAlpha VantageApifyArXivAWS LambdaShell (bash)Bearly Code InterpreterBing SearchBrave SearchChatGPT PluginsDall-E Image GeneratorDataForSeoDuckDuckGo SearchEden AIEleven Labs Text2SpeechFile SystemGolden QueryGoogle DriveGoogle PlacesGoogle SearchGoogle SerperGradioGraphQLHuggingFace Hub ToolsHuman as a toolIFTTT WebHooksLemon AgentMetaphor SearchNuclia UnderstandingOpenWeatherMapPubMedRequestsSceneXplainSearch ToolsSearchApiSearxNG SearchSerpAPITwilioWikipediaWolfram AlphaYahoo Finance NewsYouTubeZapier Natural Language ActionsAgents and toolkitsMemoryCallbacksChat loadersComponentsToolsFile SystemOn this pageFile SystemLangChain provides tools for interacting with a local file system out of the box. This notebook walks through some of them.Note: these tools are not recommended for use outside a sandboxed environment! First, we'll import the tools.from langchain.tools.file_management import (    ReadFileTool,    CopyFileTool,    DeleteFileTool,    MoveFileTool,    WriteFileTool,    ListDirectoryTool,)from langchain.agents.agent_toolkits import FileManagementToolkitfrom tempfile import TemporaryDirectory# We'll make a temporary directory to avoid clutterworking_directory = TemporaryDirectory()The FileManagementToolkit‚ÄãIf you want to provide all the file tooling to your agent, it's easy to do so with the toolkit. We'll pass the temporary directory in as a root directory as a workspace for the LLM.It's recommended to always pass in a root directory, since without one, it's easy for the LLM to pollute the working directory, and without one, there isn't any validation against