langchain
4adfd790 - Update File Management Tools to Include Root Directory (#3112)

Commit
2 years ago
Update File Management Tools to Include Root Directory (#3112) - Permit the specification of a `root_dir` to the read/write file tools to specify a working directory - Add validation for attempts to read/write outside the directory (e.g., through `../../` or symlinks or `/abs/path`'s that don't lie in the correct path) - Add some tests for all One question is whether we should make a default root directory for these? tradeoffs either way
Author
Parents
Loading