ai-utils.js
Version:
Build AI applications, chatbots, and agents with JavaScript and TypeScript.
8 lines (7 loc) • 329 B
TypeScript
import { Cost } from "./Cost.js";
import { CostCalculator } from "./CostCalculator.js";
import { SuccessfulModelCall } from "../model-function/SuccessfulModelCall.js";
export declare function calculateCost({ calls, costCalculators, }: {
calls: SuccessfulModelCall[];
costCalculators: CostCalculator[];
}): Promise<Cost>;