/** * Tool Metrics Helper * * Utilities for tracking tool execution metrics. */ export interface ToolMetricsContext { toolName: string; contextId?: string; startTime: number; } /** * Create a new tool metrics context */ export declare function createToolContext(toolName: string, contextId?: string): ToolMetricsContext; /** * Record tool completion */ export declare function recordToolCompletion(context: ToolMetricsContext, success: boolean, error?: string, metadata?: Record): void; /** * Measure tool execution with automatic recording */ export declare function measureTool(toolName: string, contextId: string | undefined, execute: () => Promise): Promise; /** * Measure tool execution with custom metadata */ export declare function measureToolWithMetadata(toolName: string, contextId: string | undefined, execute: () => Promise, extractMetadata: (result: T) => Record): Promise; //# sourceMappingURL=tool-metrics.d.ts.map