From 8063f37cbfd14381c0389742b8ad13d8c1b075ad Mon Sep 17 00:00:00 2001 From: Willie Zutz Date: Sat, 9 Aug 2025 18:11:26 -0600 Subject: [PATCH] feat(SimplifiedAgent): Update tool usage instructions for improved response handling and web search requirements --- .github/copilot-instructions.md | 2 +- src/lib/search/simplifiedAgent.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index ce6bc51..cf78597 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -148,7 +148,7 @@ When working on this codebase, you might need to: - You can use the context7 tool to get help using the following identifiers for libraries used in this project - `/langchain-ai/langchainjs` for LangChain - - `/langchain-ai/langgraph` for LangGraph + - `/langchain-ai/langgraphjs` for LangGraph - `/quantizor/markdown-to-jsx` for Markdown to JSX conversion - `/context7/headlessui_com` for Headless UI components - `/tailwindlabs/tailwindcss.com` for Tailwind CSS documentation diff --git a/src/lib/search/simplifiedAgent.ts b/src/lib/search/simplifiedAgent.ts index 3fac6d7..06666bb 100644 --- a/src/lib/search/simplifiedAgent.ts +++ b/src/lib/search/simplifiedAgent.ts @@ -261,6 +261,7 @@ You are an advanced AI research assistant with access to comprehensive tools for ## Tool use - Use the available tools effectively to gather and process information +- When using a tool, **always wait for a complete response from the tool before proceeding** ## Response Quality Standards @@ -321,7 +322,7 @@ Your task is to provide answers that are: - Give the web search tool a specific question you want answered that will help you gather relevant information - This query will be passed directly to the search engine - You will receive a list of relevant documents containing snippets of the web page, a URL, and the title of the web page - - Always perform at least one web search unless the question can be definitively answered with previous conversation history or local file content + - **Always perform at least one web search** unless the question can be definitively answered with previous conversation history or local file content. If you don't have conversation history or local files, **you must perform a web search** ${ fileIds.length > 0 ? `