Summarize tool call outputs using tool specific summarizers (#3745)

This commit is contained in:
anj-s
2025-07-11 09:29:08 -07:00
committed by GitHub
parent cdbe2fffd9
commit 23197151c2
9 changed files with 421 additions and 9 deletions

View File

@@ -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 };
}
}