import type { Tool, ToolDialect } from "../../schemas/index"; interface HistoryMessage { role: string; content: string; attachments?: { path: string; }[] | undefined; } /** * Static tools mode: prepend tools right after the system message (or at the * very start when no system message is present). The tool block stays in the * kv-cache for the whole chat session. */ export declare function prependToolsToHistory(history: HistoryMessage[], tools: Tool[]): Array; /** * Dynamic tools mode: append tools after the last history message. The * addon's compact-tools mode anchors the block after the last user message * and trims it from the kv-cache once the tool-call chain resolves, so a * subsequent turn can ship a different tool set without poisoning the cache. */ export declare function appendToolsToHistory(history: HistoryMessage[], tools: Tool[]): Array; export declare function detectToolDialect(modelId: string): ToolDialect; export {}; //# sourceMappingURL=tool-integration.d.ts.map