diff options
| author | A.J. Shulman <Shulman.aj@gmail.com> | 2025-05-21 13:11:52 -0400 |
|---|---|---|
| committer | A.J. Shulman <Shulman.aj@gmail.com> | 2025-05-21 13:11:52 -0400 |
| commit | c3dba47bcda10bbcd72010c177afa8fd301e87e1 (patch) | |
| tree | e8fe23915a09d4a9a95afbf971bce8e852fc5619 /src/client/views/nodes/chatbot/agentsystem | |
| parent | 0e98320d3b237f1927b9f1367494dccd7f66eda9 (diff) | |
feat: add codebase exploration tools for agent assistance
Add three new agent tools to improve navigation and understanding of the codebase:
FileContentTool: retrieves complete content of specified files (max 3)
FileNamesTool: lists all available files in the codebase
CodebaseSummarySearchTool: performs semantic search across file summaries
Diffstat (limited to 'src/client/views/nodes/chatbot/agentsystem')
| -rw-r--r-- | src/client/views/nodes/chatbot/agentsystem/Agent.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client/views/nodes/chatbot/agentsystem/Agent.ts b/src/client/views/nodes/chatbot/agentsystem/Agent.ts index 86d40864e..1a9df1a75 100644 --- a/src/client/views/nodes/chatbot/agentsystem/Agent.ts +++ b/src/client/views/nodes/chatbot/agentsystem/Agent.ts @@ -26,6 +26,9 @@ import { Upload } from '../../../../../server/SharedMediaTypes'; import { RAGTool } from '../tools/RAGTool'; import { AgentDocumentManager } from '../utils/AgentDocumentManager'; import { CreateLinksTool } from '../tools/CreateLinksTool'; +import { CodebaseSummarySearchTool } from '../tools/CodebaseSummarySearchTool'; +import { FileContentTool } from '../tools/FileContentTool'; +import { FileNamesTool } from '../tools/FileNamesTool'; //import { CreateTextDocTool } from '../tools/CreateTextDocumentTool'; dotenv.config(); @@ -87,6 +90,9 @@ export class Agent { //imageCreationTool: new ImageCreationTool(createImage), documentMetadata: new DocumentMetadataTool(this._docManager), createLinks: new CreateLinksTool(this._docManager), + codebaseSummarySearch: new CodebaseSummarySearchTool(this.vectorstore), + fileContent: new FileContentTool(this.vectorstore), + fileNames: new FileNamesTool(this.vectorstore), }; } |
