Defined in: realtime-types.ts
Adapter interface for connecting to realtime providers. Each provider (OpenAI, ElevenLabs, etc.) implements this interface.
provider: string;
Provider identifier (e.g., 'openai', 'elevenlabs').
connect(token, clientTools?): Promise<RealtimeConnection>;
Create a connection using the provided token.
The ephemeral token from the server.
ReadonlyArray<AnyClientTool>
Optional client-side tools to register with the provider.
Promise<RealtimeConnection>