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

25 lines (24 loc) 730 B
/** * @module GthDevToolkit */ import { BaseToolkit, StructuredToolInterface } from '@langchain/core/tools'; import { GthDevToolsConfig } from '#src/config.js'; export default class GthDevToolkit extends BaseToolkit { tools: StructuredToolInterface[]; private commands; constructor(commands?: GthDevToolsConfig); /** * Get tools filtered by operation type */ getFilteredTools(allowedOperations: 'execute'[]): StructuredToolInterface[]; /** * Validate test path to prevent security issues */ private validateTestPath; /** * Build the command for running a single test file */ private buildSingleTestCommand; private executeCommand; private createTools; }