diff options
| author | N. Taylor Mullen <[email protected]> | 2025-07-12 21:09:12 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-13 04:09:12 +0000 |
| commit | 44ef0408f3b09d9b161c64cf12bbf5ad13052598 (patch) | |
| tree | 6d290529f52078756a3563a3a0528be65cb280d5 /packages/core/src/tools/tools.ts | |
| parent | 09a3b7d5e18b345a5e89c766250014d80a1c5a08 (diff) | |
feat(tools): Centralize shell tool summarization (#4009)
Diffstat (limited to 'packages/core/src/tools/tools.ts')
| -rw-r--r-- | packages/core/src/tools/tools.ts | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/packages/core/src/tools/tools.ts b/packages/core/src/tools/tools.ts index e99eda92..68739d0e 100644 --- a/packages/core/src/tools/tools.ts +++ b/packages/core/src/tools/tools.ts @@ -5,7 +5,6 @@ */ import { FunctionDeclaration, PartListUnion, Schema } from '@google/genai'; -import { Summarizer, defaultSummarizer } from '../utils/summarizer.js'; /** * Interface representing the base Tool functionality @@ -45,16 +44,6 @@ export interface Tool< canUpdateOutput: boolean; /** - * A function that summarizes the result of the tool execution. - */ - summarizer?: Summarizer; - - /** - * Whether the tool's display output should be summarized - */ - shouldSummarizeDisplay?: boolean; - - /** * Validates the parameters for the tool * Should be called from both `shouldConfirmExecute` and `execute` * `shouldConfirmExecute` should return false immediately if invalid @@ -109,8 +98,6 @@ export abstract class BaseTool< * @param isOutputMarkdown Whether the tool's output should be rendered as markdown * @param canUpdateOutput Whether the tool supports live (streaming) output * @param parameterSchema JSON Schema defining the parameters - * @param summarizer Function to summarize the tool's output - * @param shouldSummarizeDisplay Whether the tool's display output should be summarized */ constructor( readonly name: string, @@ -119,8 +106,6 @@ export abstract class BaseTool< readonly parameterSchema: Schema, readonly isOutputMarkdown: boolean = true, readonly canUpdateOutput: boolean = false, - readonly summarizer: Summarizer = defaultSummarizer, - readonly shouldSummarizeDisplay: boolean = false, ) {} /** |
