UNPKG

gaunt-sloth-assistant

Version:

[![Tests and Lint](https://github.com/Galvanized-Pukeko/gaunt-sloth-assistant/actions/workflows/unit-tests.yml/badge.svg)](https://github.com/Galvanized-Pukeko/gaunt-sloth-assistant/actions/workflows/unit-tests.yml) [![Integration Tests](https://github.co

24 lines (23 loc) 760 B
import { BaseToolkit, StructuredToolInterface } from '@langchain/core/tools'; export default class GthFileSystemToolkit extends BaseToolkit { tools: StructuredToolInterface[]; private allowedDirectories; constructor(allowedDirectories?: string[]); /** * Get tools filtered by operation type */ getFilteredTools(allowedOperations: ('read' | 'write')[]): StructuredToolInterface[]; private normalizePath; private isProtectedDirectory; private expandHome; private validatePath; private getFileStats; private searchFiles; private normalizeLineEndings; private createUnifiedDiff; private applyFileEdits; private formatSize; private tailFile; private headFile; private createTools; }