@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
15 lines (14 loc) • 1.08 kB
TypeScript
import { LangfuseExporter } from "../../../../observability/exporters/langfuseExporter.js";
import type { ObservabilityConfig } from "../../../../types/index.js";
/**
* @description Decides whether Langfuse export is on: off when `config.langfuse` is `false`, on when it is an options object or both Langfuse keys are in the environment.
* @param config {ObservabilityConfig | undefined} - Observability options.
* @returns {boolean} `true` when a Langfuse exporter should be created.
*/
export declare function isLangfuseEnabled(config?: ObservabilityConfig): boolean;
/**
* @description Builds and starts a Langfuse exporter from config, falling back to the `LANGFUSE_*` environment variables.
* @param config {ObservabilityConfig | undefined} - Observability options; `langfuse` may carry keys, base URL, environment, release, mask and batching.
* @returns {LangfuseExporter | null} The exporter, or `null` (after a warning) when the public or secret key is missing.
*/
export declare function createLangfuseExporter(config?: ObservabilityConfig): LangfuseExporter | null;