-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Labels
Description
https://www.npmjs.com/package/bash-tool
import { createBashTool, Sandbox } from "bash-tool";
const customSandbox: Sandbox = {
async executeCommand(command) {
// Your implementation here
return { stdout: "", stderr: "", exitCode: 0 };
},
async readFile(path) {
// Your implementation here
return "";
},
async writeFiles(files) {
// Your implementation here - files is Array<{path, content}>
},
};
const { tools } = await createBashTool({ sandbox: customSandbox });Giving LLMs access to unix tools like grep or awk makes them very efficient.
Reactions are currently unavailable