@maximai/maxim-js
Version:
Maxim AI JS SDK. Visit https://getmaxim.ai for more info.
27 lines (26 loc) • 1.16 kB
TypeScript
import type { DataStructure } from "../models/dataset";
import type { CombinedLocalEvaluatorType, LocalEvaluatorType, PassFailCriteriaType } from "../models/evaluator";
export declare function buildErrorMessage(error: unknown, isCause?: boolean): string;
export declare function calculatePollingInterval(timeoutMinutes: number, isAIEvaluatorInUse?: boolean): number;
export declare function getLocalEvaluatorNameToIdAndPassFailCriteriaMap<T extends DataStructure | undefined>(evaluators: (LocalEvaluatorType<T> | CombinedLocalEvaluatorType<T, Record<string, PassFailCriteriaType>> | string)[]): Map<string, {
id: string;
passFailCriteria: PassFailCriteriaType;
}>;
type StatusData = Record<"running" | "queued" | "completed" | "failed" | "stopped" | "total", number>;
export declare const cliAsciiColors: {
reset: string;
red: string;
green: string;
yellow: string;
blue: string;
magenta: string;
cyan: string;
brightRed: string;
brightGreen: string;
brightYellow: string;
brightBlue: string;
bold: string;
dim: string;
};
export declare function createStatusTable(data: StatusData): string;
export {};