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

14 lines (13 loc) • 699 B
import type { ProxyBodyCaptureInput, ServerContext } from "../types/index.js"; /** Capture serialized client output and explicitly labelled SDK observations. * This observer never reads a stream or creates a second consumer. */ export declare function createProxyRouteBodyCapture(ctx: ServerContext, model: string, stream: boolean, startedAt: number): { log: (capture: ProxyBodyCaptureInput) => void; request(): void; json(body: unknown, responseStatus: number): void; accumulator(phase: string, contentType: string, attempt?: number): { append: (value: Uint8Array) => void; appendEvent(value: unknown): void; finish(responseStatus: number): void; }; };