/** * LiveKit Agents agent definition — realtime (Gemini Live speech-to-speech). * * `defineRealtimeVoiceAgent` returns the agent object placed as the default * export of a worker entry file. Unlike the cascaded `defineVoiceAgent` * (Silero VAD → STT → NeuroLink → TTS), here a single realtime model (Gemini * Live on Vertex) does STT + reasoning + TTS + turn detection over one * * `@livekit/agents`, `@livekit/agents-plugin-google`, `@livekit/rtc-node`, and * `@google/genai` are imported dynamically so the core package does not require * them unless the realtime agent is used. Type-only imports are erased at build. * * See docs/features/livekit-voice-agent.md. */ import type { JobContext } from "@livekit/agents"; import type { RealtimeVoiceAgentConfig } from "../../types/index.js"; /** * Define a realtime (Gemini Live S2S) LiveKit voice agent. * * Place the result as the default export of the worker entry file and launch it * with `startRealtimeVoiceAgentWorker`. With no `config` everything is resolved * from the environment (see `resolveRealtimeVoiceConfig`). */ export declare function defineRealtimeVoiceAgent(config?: RealtimeVoiceAgentConfig): { entry: (ctx: JobContext) => Promise; };