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

26 lines (25 loc) • 1.56 kB
import { SpanStatus } from "../types/index.js"; /** @description Langfuse OTLP ingestion endpoint path. */ export declare const TRACES_PATH = "/api/public/otel/v1/traces"; /** @description Langfuse health endpoint path. */ export declare const HEALTH_PATH = "/api/public/health"; /** @description Langfuse Cloud base URL used when none is configured. */ export declare const DEFAULT_BASE_URL = "https://cloud.langfuse.com"; /** @description Spans buffered before an automatic flush. */ export declare const DEFAULT_FLUSH_AT = 15; /** @description Milliseconds between scheduled flushes. */ export declare const DEFAULT_FLUSH_INTERVAL_MS = 5000; /** @description Milliseconds before an export request is aborted. */ export declare const DEFAULT_TIMEOUT_MS = 30000; /** @description Maximum spans sent in one export request. */ export declare const MAX_SPANS_PER_REQUEST = 500; /** @description Maximum serialized bytes sent in one export request. */ export declare const MAX_BYTES_PER_REQUEST = 3500000; /** @description Placeholder that replaces a value fully removed by the user's mask. */ export declare const FULLY_MASKED = "<fully masked>"; /** @description Span attributes holding trace and observation input or output, which the mask applies to. */ export declare const CONTENT_KEYS: Set<string>; /** @description Attribute prefixes whose values are metadata entries. */ export declare const METADATA_PREFIXES: string[]; /** @description OTLP numeric status code for each span status. */ export declare const OTLP_STATUS_CODES: Record<SpanStatus, number>;