mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
Summarize tool call outputs using tool specific summarizers (#3745)
This commit is contained in:
@@ -27,6 +27,7 @@ export interface ShellToolParams {
|
||||
directory?: string;
|
||||
}
|
||||
import { spawn } from 'child_process';
|
||||
import { llmSummarizer } from '../utils/summarizer.js';
|
||||
|
||||
const OUTPUT_UPDATE_INTERVAL_MS = 1000;
|
||||
|
||||
@@ -73,6 +74,8 @@ Process Group PGID: Process group started or \`(none)\``,
|
||||
},
|
||||
false, // output is not markdown
|
||||
true, // output can be updated
|
||||
llmSummarizer,
|
||||
true, // should summarize display output
|
||||
);
|
||||
}
|
||||
|
||||
@@ -487,7 +490,6 @@ Process Group PGID: Process group started or \`(none)\``,
|
||||
// returnDisplayMessage will remain empty, which is fine.
|
||||
}
|
||||
}
|
||||
|
||||
return { llmContent, returnDisplay: returnDisplayMessage };
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user