@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
21 lines (20 loc) • 1.49 kB
TypeScript
/** @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 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;