UNPKG

@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

31 lines (30 loc) • 1.02 kB
/** * Braintrust Exporter * Exports spans to Braintrust AI evaluation platform */ import type { BraintrustExporterConfig, ExporterHealthStatus, ExportResult, SpanData } from "../../types/index.js"; import { BaseExporter } from "./baseExporter.js"; /** * Braintrust exporter for AI evaluation and scoring * Supports project logs and evaluation metrics */ export declare class BraintrustExporter extends BaseExporter { private readonly apiKey; private readonly projectName; private readonly endpoint; constructor(config: BraintrustExporterConfig); initialize(): Promise<void>; exportSpan(span: SpanData): Promise<ExportResult>; exportBatch(spans: SpanData[]): Promise<ExportResult>; flush(): Promise<void>; shutdown(): Promise<void>; healthCheck(): Promise<ExporterHealthStatus>; /** * Verify connectivity to Braintrust API */ protected ping(): Promise<void>; /** * Convert span to Braintrust log format */ private convertToBraintrustLog; }