@juspay/neurolink
Version:
The pipe layer of an AI nervous system: one interface connecting provider neurons to your application, across three inference types — generate, stream and decide. `decide` returns typed, calibrated judgements from a non-generative model (~400ms, ~$0.00002
58 lines (57 loc) • 1.44 kB
TypeScript
/**
* @file Report Generator
* Generate evaluation reports in various formats
*/
import type { GeneratedReport, ReportConfig, ReportData } from "../../types/index.js";
/**
* Report generator class
*/
export declare class ReportGenerator {
private _config;
constructor(config?: Partial<ReportConfig>);
/**
* Generate a report
*/
generate(data: ReportData): GeneratedReport;
/**
* Generate text report
*/
private _generateTextReport;
/**
* Generate JSON report
*/
private _generateJsonReport;
/**
* Generate Markdown report
*/
private _generateMarkdownReport;
/**
* Generate HTML report
*/
private _generateHtmlReport;
/**
* Escape HTML special characters
*/
private _escapeHtml;
/**
* Update configuration
*/
configure(config: Partial<ReportConfig>): void;
}
/**
* Create a report generator
*/
export declare function createReportGenerator(config?: Partial<ReportConfig>): ReportGenerator;
/**
* Quick report generation functions
*/
export declare const Reports: {
/** Generate text report */
text: (data: ReportData) => GeneratedReport;
/** Generate JSON report */
json: (data: ReportData) => GeneratedReport;
/** Generate Markdown report */
markdown: (data: ReportData) => GeneratedReport;
/** Generate HTML report */
html: (data: ReportData) => GeneratedReport;
};