UNPKG

tryaii-mcp-server

Version:

TryAII MCP Server - 15+ AI models with comparison, cost tracking, and collective intelligence

22 lines 743 B
/** * Centralized cost calculation utility to ensure consistency * between McpProtocolHandler balance deduction and SessionManager database storage */ export interface CostCalculationResult { totalCost: number; modelCount: number; successfulModels: number; breakdown: Array<{ modelId: string; cost: number; success: boolean; }>; } /** * Calculate actual total cost from tool execution result * This is the authoritative cost calculation used by both: * - McpProtocolHandler (for balance deduction) * - SessionManager (for database session cost) */ export declare function calculateActualCost(result: any, toolName: string): CostCalculationResult; //# sourceMappingURL=costCalculator.d.ts.map