/** * Shared tool invocation extraction from MastraDBMessages. * * Used by both the Outcome and Efficiency scorers to extract completed * tool calls from message content, handling both the `parts` array (primary) * and the legacy `toolInvocations` array. */ import type { MastraDBMessage } from '@mastra/core/agent'; export type ExtractedToolCall = { toolCallId?: string; toolName: string; args: Record; result: unknown; isError: boolean; index: number; }; /** * Extract completed tool invocations from MastraDBMessages. * * Handles both: * - `content.parts` (primary format, MastraToolInvocationPart) * - `content.toolInvocations` (legacy format, AI SDK ToolInvocation[]) */ export declare function extractToolCalls(messages: MastraDBMessage[]): ExtractedToolCall[]; //# sourceMappingURL=extract-tools.d.ts.map