@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
25 lines (24 loc) • 952 B
TypeScript
/**
* LiveKit server-side room operations: create a room with metadata, and
* dispatch a named agent to a room.
*
* Wraps `livekit-server-sdk` (an optional dependency, imported dynamically) so
* consumers route all LiveKit *server* calls through `@juspay/neurolink/livekit`
* — they never depend on the SDK directly. Mirrors `mintJoinToken`.
*/
import type { LiveKitServerCredentials } from "../../types/index.js";
export declare function createVoiceRoom(req: LiveKitServerCredentials & {
room: string;
metadata?: string;
emptyTimeoutSeconds?: number;
departureTimeoutSeconds?: number;
}): Promise<void>;
/**
* Explicitly dispatch a named agent to a room. The long-lived worker registered
* under `agentName` receives the job and forks a child to run the call.
*/
export declare function dispatchVoiceAgent(req: LiveKitServerCredentials & {
room: string;
agentName: string;
metadata?: string;
}): Promise<void>;