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) • 2.53 kB
/** @description Smallest per-string character budget when trimming span payloads. */ export declare const MIN_STRING_BUDGET_CHARS = 64; /** @description Base64 payload length above which a value is treated as binary and replaced. */ export declare const BINARY_PAYLOAD_MIN_CHARS = 1024; /** @description Placeholder written when a span value cannot be serialized. */ export declare const UNSERIALIZABLE_VALUE = "[unserializable]"; /** @description Object keys whose values are treated as binary payloads. */ export declare const BINARY_KEYS: Set<string>; /** @description Placeholder that replaces a masked credential in span content. */ export declare const REDACTED_VALUE = "[REDACTED]"; /** @description Finish reasons that mark a completed model call as a Langfuse warning. */ export declare const WARNING_FINISH_REASONS: Set<string>; /** @description Room for the "...[truncated N chars]" note, kept outside the opening a cap preserves. */ export declare const TRUNCATION_NOTE_ALLOWANCE_CHARS = 48; /** @description Name of the OpenTelemetry context key that carries a trace's full metadata. */ export declare const TRACE_METADATA_CONTEXT_KEY = "neurolink.trace.metadata"; /** @description Name of the OpenTelemetry context key that carries the trace tag of the prompt `setLangfuseContext` was last given. */ export declare const PROMPT_TAG_CONTEXT_KEY = "neurolink.trace.promptTag"; /** @description Name of the OpenTelemetry context key set when an enclosing `setLangfuseContext` asked for `redactIO`. */ export declare const REDACT_IO_CONTEXT_KEY = "neurolink.trace.redactIO"; /** @description Log prefix for NeuroLink's OpenTelemetry setup. */ export declare const OTEL_LOG_PREFIX = "[OpenTelemetry]"; /** @description Most open and most ended spans the exporter span processor remembers for re-parenting; the oldest are forgotten first. */ export declare const MAX_REMEMBERED_SPANS = 5000; /** @description Most redacted span attribute strings remembered so `observe` does not redact them a second time. */ export declare const MAX_REDACTED_ATTRIBUTES = 64; /** @description Span attribute that keeps a wrapper span out of every exporter. */ export declare const INTERNAL_SPAN_ATTRIBUTE = "langfuse.internal"; /** @description Instrumentation scope of the proxy's tracer. Of the proxy's spans only the ones it marks as observations (the request root and its generation) reach the exporters, although its spans also carry `gen_ai.*` keys for collectors. */ export declare const PROXY_TRACER_SCOPE = "neurolink.proxy";