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

20 lines (19 loc) • 793 B
import type { Server } from "node:http"; import type { SocketWorkerRuntime, SocketWorkerRuntimeOptions } from "../types/index.js"; /** * Adapts transferred TCP sockets to an HTTP server without opening another * listener. Active responses finish normally; idle keep-alive sockets close as * soon as draining begins. */ export declare function createSocketWorkerRuntime(server: Server, options?: SocketWorkerRuntimeOptions): SocketWorkerRuntime; /** * Attach the IPC ownership protocol and keep committed sockets addressable * by late cancellation. */ export declare function attachSocketWorkerProcess(server: Server, input: { generation: number; version: string; processInstanceId?: string; onActivated?: () => void; onDrained?: () => void; }): SocketWorkerRuntime;