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

17 lines (16 loc) • 919 B
import type { ProcessedProxyBodyCapture, ProxyBodyCaptureEntry, ProxyBodyCaptureWorkerSnapshot } from "../types/index.js"; export declare const PROXY_BODY_CAPTURE_DEADLINE_MS = 20000; /** Bounded bulk capture. Failures are indexed; never fall back to blocking work. */ export declare function captureProxyBody(entry: ProxyBodyCaptureEntry, logDir: string | null, consume: (result: ProcessedProxyBodyCapture) => Promise<void>): Promise<void>; /** * Return independent counters for processing, rejection, failure, and * retained publication work. */ export declare function getBodyCaptureWorkerSnapshot(): ProxyBodyCaptureWorkerSnapshot; /** Isolated tests point at a separately executed built worker. */ export declare const __bodyCaptureWorkerTestHooks: { /** * Reset an isolated worker after capture publications drain, optionally selecting a fixture entry. */ reset(url?: URL): Promise<void>; };