improve tools

This commit is contained in:
2025-12-15 14:23:53 +00:00
parent 35911c21de
commit 37b6e98a81
4 changed files with 75 additions and 17 deletions

View File

@@ -99,6 +99,15 @@ export class DualAgentOrchestrator {
}
}
/**
* Register a scoped filesystem tool that can only access files within the specified directory
* @param basePath The directory to scope filesystem operations to
*/
public registerScopedFilesystemTool(basePath: string): void {
const scopedTool = new FilesystemTool({ basePath });
this.registerTool(scopedTool);
}
/**
* Initialize all tools (eager loading)
*/