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

15 lines (14 loc) • 772 B
/** * Error codes that indicate a transient transport failure (dropped * connection, socket reset, connect timeout) rather than a permanent * misconfiguration. Shared between `proxy/proxyFetch.ts` (retry gating) and * `utils/errorClassifier.ts` (NetworkError classification) so both stay in * sync — a second hand-maintained copy would drift the two apart the same * way the "5xx literal text vs statusCode" split did. * * undici's native `fetch()` wraps the real transport failure in * `TypeError: fetch failed`, with the actionable code on `error.cause` * (sometimes nested another level deep, e.g. a SocketError inside a * ConnectTimeoutError) — never on the outer TypeError itself. */ export declare const TRANSIENT_NETWORK_CODES: ReadonlySet<string>;