Enable tool summarization only when explicitly set in settings.json (#4140)

Co-authored-by: matt korwel <matt.korwel@gmail.com>
This commit is contained in:
anj-s
2025-07-15 10:22:31 -07:00
committed by GitHub
parent 3d65f44032
commit 5d27db15fc
8 changed files with 153 additions and 20 deletions
+1 -1
View File
@@ -121,7 +121,7 @@ describe('summarizers', () => {
await summarizeToolOutput(longText, mockGeminiClient, abortSignal, 1000);
const expectedPrompt = `Summarize the following tool output to be a maximum of 1000 characters. The summary should be concise and capture the main points of the tool output.
const expectedPrompt = `Summarize the following tool output to be a maximum of 1000 tokens. The summary should be concise and capture the main points of the tool output.
The summarization should be done based on the content that is provided. Here are the basic rules to follow:
1. If the text is a directory listing or any output that is structural, use the history of the conversation to understand the context. Using this context try to understand what information we need from the tool output and return that as a response.