@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
30 lines (29 loc) • 1.19 kB
TypeScript
/**
* LiveKit Agents worker launcher.
*
* Registers a worker with the LiveKit server (Cloud or self-hosted) for the
* given agent entry file. LiveKit dispatches one Job per room, each running in
* its own process, which provides worker-per-call isolation and horizontal
* scaling. Connection settings are resolved from the environment.
*
* `@livekit/agents` is an optional dependency, imported dynamically.
*
* See docs/features/livekit-voice-agent.md.
*/
import type { LiveKitWorkerLaunchOptions } from "../../types/index.js";
export declare function installVoiceWorkerProcessGuards(metricsIntervalMs?: number): void;
/**
* Launch the LiveKit voice agent worker.
*
* Call from a small runner script; `agentFile` must point to the file whose
* default export is the result of `defineVoiceAgent`.
*
* ```ts
* await startVoiceAgentWorker({
* agentFile: new URL("./voice-agent-entry.js", import.meta.url).pathname,
* agentName: "neurolink-voice",
* });
* ```
*/
export declare function startVoiceAgentWorker(options: LiveKitWorkerLaunchOptions): Promise<void>;
export declare function startRealtimeVoiceAgentWorker(options: LiveKitWorkerLaunchOptions): Promise<void>;