import type { ToolCall } from "../internal/llm.js"; /** * Best-effort recovery of tool calls that a weaker (non-native-function-calling) model emitted as * TEXT instead of structured tool calls. Recognizes `{...}` / * `...` tags and fenced ```json blocks containing `{name|tool, arguments|parameters|input}` * (or an array of them). Only names present in `toolNames` are promoted. * * Returns the promoted tool calls and the text with those blocks removed. Off by default — enable via * `createOpenAIBrain({ repairTextToolCalls: true })` only for models that need it. */ export declare function repairTextToolCalls(text: string, toolNames: Set): { toolCalls: ToolCall[]; cleanedText: string; }; //# sourceMappingURL=tool-call-repair.d.ts.map