Exercise#2 File Tool

Objective

You will use the Langchain FileManagementToolikit to learn how to create tools. In later lessons you will learn how to use the tools with agents.

Steps

FileManagementToolkit

Read through the documentation to learn the Langchain API for the file management toolkit.

1. Create a temporary directory as the working_dir

2. List the tools available in file management toolkit

3. Write a file (or 2) to the folder

4. List the files in the folder

5. Read content of a file

Solution

Hint

The solution to the exercise is available in the following notebook.

exercise-1-filemanagementtoolkit