/** * LiveKit Agents agent definition. * * `defineVoiceAgent` returns the agent object placed as the default export of a * worker entry file. The framework runs it as a Job (one per call, in its own * process): it connects to the room, builds the NeuroLink brain via the * supplied factory, wires Silero VAD + STT/TTS plugins, and overrides `llmNode` * so every turn is generated by `neurolink.stream()`. * * `@livekit/agents` and the plugins are optional dependencies, imported * dynamically so the core package does not require them unless the LiveKit * voice agent is used. Type-only imports are erased at build time and add no * runtime dependency. * * See docs/features/livekit-voice-agent.md. */ import type { Agent as JobAgent } from "@livekit/agents"; import type { LiveKitVoiceAgentConfig } from "../../types/index.js"; /** * Define a LiveKit voice agent backed by NeuroLink. * * Place the result as the default export of the worker entry file: * * ```ts * export default defineVoiceAgent({ * createNeuroLink: async () => buildConfiguredNeuroLink(), * stt: { provider: "deepgram" }, * tts: { provider: "elevenlabs" }, * }); * ``` */ export declare function defineVoiceAgent(config: LiveKitVoiceAgentConfig): JobAgent;