UNPKG

buroventures-harald-code-core

Version:

Harald Code Core - Core functionality for AI-powered coding assistant

26 lines (25 loc) 1.01 kB
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { ToolResult } from '../tools/tools.js'; import { GeminiClient } from '../core/client.js'; /** * A function that summarizes the result of a tool execution. * * @param result The result of the tool execution. * @returns The summary of the result. */ export type Summarizer = (result: ToolResult, geminiClient: GeminiClient, abortSignal: AbortSignal) => Promise<string>; /** * The default summarizer for tool results. * * @param result The result of the tool execution. * @param geminiClient The Gemini client to use for summarization. * @param abortSignal The abort signal to use for summarization. * @returns The summary of the result. */ export declare const defaultSummarizer: Summarizer; export declare const llmSummarizer: Summarizer; export declare function summarizeToolOutput(textToSummarize: string, geminiClient: GeminiClient, abortSignal: AbortSignal, maxOutputTokens?: number): Promise<string>;