From c3dba47bcda10bbcd72010c177afa8fd301e87e1 Mon Sep 17 00:00:00 2001 From: "A.J. Shulman" Date: Wed, 21 May 2025 13:11:52 -0400 Subject: 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 --- src/client/views/nodes/chatbot/vectorstore/Vectorstore.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/client/views/nodes/chatbot/vectorstore') diff --git a/src/client/views/nodes/chatbot/vectorstore/Vectorstore.ts b/src/client/views/nodes/chatbot/vectorstore/Vectorstore.ts index 5c2d0e5ea..72060973b 100644 --- a/src/client/views/nodes/chatbot/vectorstore/Vectorstore.ts +++ b/src/client/views/nodes/chatbot/vectorstore/Vectorstore.ts @@ -85,6 +85,12 @@ export class Vectorstore { } } + async getFileNames() { + const response = await Networking.FetchFromServer('/getFileNames'); + const filepaths = JSON.parse(response); + return filepaths; + } + /** * Initializes the Pinecone index by checking if it exists and creating it if necessary. * Sets the index to use cosine similarity for vector similarity calculations. -- cgit v1.2.3-70-g09d2