@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) • 905 B
TypeScript
import type { ProxyWorkerControlMessage, ProxyWorkerStatusMessage } from "../types/index.js";
export declare const PROXY_SOCKET_WORKER_ENV = "NEUROLINK_PROXY_SOCKET_WORKER";
/** The worker has not been sent a commit and cannot have served this socket. */
export declare const PROXY_SOCKET_OFFER_TIMEOUT = "PROXY_SOCKET_OFFER_TIMEOUT";
/** Commit delivery is uncertain; close only this socket and never replay it. */
export declare const PROXY_SOCKET_COMMIT_TIMEOUT = "PROXY_SOCKET_COMMIT_TIMEOUT";
export declare const PROXY_ROLLING_SUPERVISOR_ENV = "NEUROLINK_PROXY_ROLLING_SUPERVISOR";
export declare function isProxyWorkerControlMessage(value: unknown): value is ProxyWorkerControlMessage;
/**
* Validate worker status and bounded process identity before the
* supervisor trusts IPC evidence.
*/
export declare function isProxyWorkerStatusMessage(value: unknown): value is ProxyWorkerStatusMessage;