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

18 lines (17 loc) • 719 B
/** * Proxy Quiet Detector * Determines whether the proxy has been idle (no traffic) for a given * threshold by efficiently reading only the tail of today's debug log file. * Used by the auto-update system to find safe windows for restarts. */ import type { QuietStatus } from "../types/index.js"; /** * Check whether proxy traffic has been quiet (no requests) for at least * `quietThresholdMs` milliseconds. * * Reads only the tail of today's debug log file for efficiency. * * @param quietThresholdMs Silence duration (ms) to consider "quiet". Default: 120 000 (2 min). * @returns QuietStatus with the idle analysis. */ export declare function checkTrafficQuiet(quietThresholdMs?: number): QuietStatus;