/** * ext-eval-report-mlflow: MLflow Tracking transport for eval report exports. * * The extension resolves the core `EvalReportExporterRegistry` contract during * setup and registers one `EvalReportExporter` that writes a completed * Veryfront `EvalReport` to MLflow as a run. * * @module extensions/ext-eval-report-mlflow */ import type { EvalReport } from "../../../src/eval/index.js"; import type { ExtensionFactory } from "../../../src/extensions/index.js"; import { type EvalReportExportContext, type EvalReportExporter, type EvalReportExportReceipt } from "../../../src/extensions/eval/index.js"; type EvalReportMlflowFetch = (input: string | URL | Request, init?: RequestInit) => Promise; export interface EvalReportMlflowExtensionConfig { trackingUri?: string; artifactsPort?: string | number; artifactsUri?: string; experimentName?: string; runName?: string; trackingToken?: string; trackingUsername?: string; trackingPassword?: string; oauthTokenUrl?: string; oauthClientId?: string; oauthClientSecret?: string; oauthScope?: string; exportArtifacts?: boolean; /** Bounded per-request timeout. Defaults to 10 seconds. */ requestTimeoutMs?: number; /** Number of retries for safe requests. Defaults to 2 (three total attempts). */ retryAttempts?: number; /** Initial retry delay. Defaults to 250 ms and uses exponential backoff. */ retryDelayMs?: number; /** * Optional web UI URL template. It must include `{experimentId}` and * `{runId}` and may include `{trackingUri}`. */ runUrlTemplate?: string; fetch?: EvalReportMlflowFetch; } export interface MlflowArtifactUploadResult { artifactPath: string; uploadUrl: string; } type TrackingCredentialSource = "configuration" | "environment"; export declare class EvalReportMlflowExporter implements EvalReportExporter { readonly id: string; private readonly config; private readonly fetchImpl; constructor(config: EvalReportMlflowExtensionConfig & { id: string; trackingUri: string; }, fetchImpl?: EvalReportMlflowFetch, trackingCredentialSource?: TrackingCredentialSource); export(report: EvalReport, context: EvalReportExportContext): Promise; } export declare function createEvalReportMlflowExporter(config: EvalReportMlflowExtensionConfig & { trackingUri: string; }, fetchImpl?: EvalReportMlflowFetch): EvalReportMlflowExporter; declare const extEvalReportMlflow: ExtensionFactory; export default extEvalReportMlflow; //# sourceMappingURL=index.d.ts.map