@archildata/langchain gives LangChain.js and LangGraph.js agents a filesystem over an Archil disk or workspace. The agent reads, writes, searches, and runs commands against your data. For Python, use Python agent tools.
Setup
1
Create a disk and an API key
Create a disk in the Archil console in a region with compute, and create an API key in the same region. Set them in your environment:
2
Install the packages
ANTHROPIC_API_KEY.Disk tools
createDiskTools returns LangChain tools for the disk. Pass them to an agent, or bind them to a model:
read_file, write_file, delete_file, list_files, glob, grep, and run_bash. To span several disks, pass a workspace instead of a disk.